Skip to content

Allow users to configure CockroachDB log rotation based on log age and not only size #125149

@daniel-crlabs

Description

@daniel-crlabs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cluster-observabilityRelated to cluster observabilityC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)O-supportWould prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docsP-3Issues/test failures with no fix SLAT-observability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions