fluent / fluentd-kubernetes-daemonset

Fluentd daemonset for Kubernetes and it Docker image
Apache License 2.0
1.27k stars 981 forks source link

Log Rotation #1433

Closed clarkholdham closed 1 year ago

clarkholdham commented 1 year ago

I'm having some trouble interpreting the Log Rotation Setting documentation. Specifically the rotate_age option. The docs specific this can be an integer or string value. My understanding is if this field is an integer value, the field indicates "how many logs to keep before removing the oldest" but, when this field is a string, (ex "daily") the field indicates "when to rotate a log file". These don't seem like they are the same function to me?

Essentially what I'm trying to achieve is a daily log rotation, keeping only the last 7 logs (1 week). If I were to set the rotate_age to "daily", I'm not sure how I would specify the "age" (number) of files to keep. Is this configuration possible with some combination of these settings?

clarkholdham commented 1 year ago

Sorry, wrong repository