Scripts de nettoyage des logs Clickhouse & documentation

This commit is contained in:
jfmartel 2025-10-10 12:37:47 -04:00
parent 213cc8ec8f
commit 27b0bb4590
3 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#!/bin/bash
clickhouse-client --user=default --password=F4stCharge --queries-file=/home/yultek/cleanuplogs.sql

View File

@ -0,0 +1,7 @@
TRUNCATE TABLE system.part_log;
TRUNCATE TABLE system.trace_log;
TRUNCATE TABLE system.processors_profile_log;
TRUNCATE TABLE system.query_log;
TRUNCATE TABLE system.metric_log;
TRUNCATE TABLE system.latency_log;
TRUNCATE TABLE system.asynchronous_metric_log;