carbon-clickhouse icon indicating copy to clipboard operation
carbon-clickhouse copied to clipboard

carbon-clickhouse log rotation

Open CMBCKSRL opened this issue 2 years ago • 1 comments

Is there any way to configure carbon-clickhouse logs pruning so that the log file doesn't grow huge?

CMBCKSRL avatar Dec 11 '23 17:12 CMBCKSRL

You can use logrotate for that. Adjust the log path in the example below and should be good:

/var/log/carbon-clickhouse/carbon-clickhouse.log
{
    maxsize 51200k
    maxage 10
    rotate 10
    daily
    missingok
    compress
    ifempty
}

lamaral avatar Dec 11 '23 18:12 lamaral