Skip to content

Commit

Permalink
bucket logging: Change logrotate configuration from daily to hourly
Browse files Browse the repository at this point in the history
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>
(cherry picked from commit 864f9f0)
  • Loading branch information
aspandey authored and liranmauda committed May 29, 2024
1 parent bbe5965 commit 605e1de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/deploy/NVA_build/logrotate_noobaa.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@

/var/log/bucket_logs.log
{
daily
size 100k
hourly
minsize 10
maxsize 50k
start 1
missingok
rotate 100
Expand Down

0 comments on commit 605e1de

Please sign in to comment.