-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add log rotation for Loki #525
Comments
One solution I found is to set kubelet configs Also didn't find anything log rotate parameter or method in grafana-agent-operator, so I think this might be the only straightforward solution here. |
I think we can enable loki compactor for indexing rotation, https://grafana.com/docs/loki/latest/operations/storage/retention/ |
Fixes #525 limits_config: retention_period: 10d # Keep 10 days compactor: delete_request_cancel_period: 10m # don't wait 24h before processing the delete_request retention_enabled: true # actually do the delete retention_delete_delay: 2h # wait 2 hours before actually deleting stuff
Fixes #525 limits_config: retention_period: 30d # Keep 30 days compactor: delete_request_cancel_period: 10m # don't wait 24h before processing the delete_request retention_enabled: true # enable log retention retention_delete_delay: 2h # wait 2 hours before actually deleting stuff
Fixes #525 limits_config: retention_period: 30d # Keep 30 days compactor: delete_request_cancel_period: 10m # don't wait 24h before processing the delete_request retention_enabled: true # enable log retention retention_delete_delay: 2h # wait 2 hours before actually deleting stuff
Enable loki log rotation by default, the default retention period is 30 days, but can be changed with an ansible variable loki_log_retention_period. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days, but can be changed with an ansible variable loki_log_retention_period. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
Enable loki log rotation by default, the default retention period is 30 days. Fixes #525
We need to setup a log rotation in place to setup a tail like 365d logging or so.
The text was updated successfully, but these errors were encountered: