go-graphite/carbon-clickhouse

carbon-clickhouse log rotation

CMBCKSRL opened this issue · 1 comments

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

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
}