Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

carbon-clickhouse log rotation #134

Open
CMBCKSRL opened this issue Dec 11, 2023 · 1 comment
Open

carbon-clickhouse log rotation #134

CMBCKSRL opened this issue Dec 11, 2023 · 1 comment

Comments

@CMBCKSRL
Copy link

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

@lamaral
Copy link

lamaral commented Dec 11, 2023

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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants