Log Rotation #4164
Unanswered
clarkholdham
asked this question in
Q&A
Log Rotation
#4164
Replies: 1 comment
-
In such a situation, it may be better to delegate rotation to /etc/logrotate.d/ configuration. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having some trouble interpreting the Log Rotation Setting documentation. Specifically the rotate_age option. The docs specify 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, the field indicates "when to rotate a log file" (ex daily, weekly, monthly). 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?
Beta Was this translation helpful? Give feedback.
All reactions