-
Notifications
You must be signed in to change notification settings - Fork 76
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
bucket logging: Change logrotate configuration from daily to hourly #8006
Conversation
@@ -30,8 +30,9 @@ | |||
|
|||
/var/log/bucket_logs.log | |||
{ | |||
daily | |||
size 100k | |||
hourly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hourly check is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@naveenpaul1 yes, Actually these logs should be uploaded to log buckets and which would be consumed by other process. Its not only when some bug happens. These are logs for bucket operations.
LGTM |
7ae8a9e
to
69f306c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Changing conf to rotate the log file every hour if it meets minimum size criteria. hourly minsize 10 maxsize 50k It means that for every hour (01:00 AM, 02:00 AM and so on) when logrotate is called, it will see if the size of the log is atleast 10 bytes or not. If it is, it will rotate the logs. maxsize makes sure that if the log size is 50k or more than as soon as logrotate is executed this log will be rotated. Even if it happens every minute or 5 minutes or so. Signed-off-by: Ashish Pandey <aspandey@redhat.com>
69f306c
to
864f9f0
Compare
Changing conf to rotate the log file every hour if it meets minimum size criteria.
hourly
minsize 10
maxsize 50k
It means that for every hour (01:00 AM, 02:00 AM and so on) when logrotate is called, it will see if the size of the log is atleast 10 bytes or not. If it is, it will rotate the logs.
maxsize makes sure that if the log size is 50k or more than as soon as logrotate is executed this log will be rotated. Even if it happens every minute or 5 minutes or so.