2024-09-25 07:59:25 -05:00
|
|
|
<clickhouse>
|
|
|
|
<logger>
|
|
|
|
<level>warning</level>
|
|
|
|
<console>true</console>
|
|
|
|
</logger>
|
|
|
|
|
|
|
|
<query_log replace="1">
|
|
|
|
<database>system</database>
|
|
|
|
<table>query_log</table>
|
|
|
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
|
|
|
<engine>
|
|
|
|
ENGINE = MergeTree
|
|
|
|
PARTITION BY event_date
|
|
|
|
ORDER BY (event_time)
|
|
|
|
TTL event_date + interval 30 day
|
|
|
|
SETTINGS ttl_only_drop_parts=1
|
|
|
|
</engine>
|
|
|
|
</query_log>
|
|
|
|
|
|
|
|
<!-- Stops unnecessary logging -->
|
2024-12-04 10:16:25 -06:00
|
|
|
<metric_log remove="remove" />
|
|
|
|
<asynchronous_metric_log remove="remove" />
|
2024-09-25 07:59:25 -05:00
|
|
|
<query_thread_log remove="remove" />
|
|
|
|
<text_log remove="remove" />
|
|
|
|
<trace_log remove="remove" />
|
|
|
|
<session_log remove="remove" />
|
|
|
|
<part_log remove="remove" />
|
|
|
|
</clickhouse>
|