Scripts de nettoyage des logs Clickhouse & documentation
This commit is contained in:
parent
213cc8ec8f
commit
27b0bb4590
2
Clickhouse VM/cleanuplogs.sh
Normal file
2
Clickhouse VM/cleanuplogs.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
clickhouse-client --user=default --password=F4stCharge --queries-file=/home/yultek/cleanuplogs.sql
|
||||||
7
Clickhouse VM/cleanuplogs.sql
Normal file
7
Clickhouse VM/cleanuplogs.sql
Normal 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;
|
||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user