-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Description
Is your feature request related to a problem? Please describe.
Currently CockroachDB only allows users to configure log rotation based on log size (max-group-size
), which can be rather cumbersome and not useful when troubleshooting clusters with problems and these logs are rotated too soon because the logs are getting flooded with errors or some other reason. This can also be a burden when troubleshooting issues in the far past and the logs get rotated too often.
Describe the solution you'd like
Provide an option/alternative/choice for users to choose between size or age for log rotation (or both).
Describe alternatives you've considered
Increasing max-group-size
is not ideal since one can't predict the size of logs to know for certain how many days worth of logs will be kept.
Jira issue: CRDB-39277