Logrotat on CentOS, maxsize option

I work with logrotate on Centos 6.4 and would like to rotate logs daily or reach 50 MB.

The only problem I am facing is that the version of logrotate for CentOS is 3.7.8, which does not have the maxsize option that I have to use.

Is there a workaround for this? The options in this logrotate 3.7.8 are not enough unless I create a cron that runs every minute to check file sizes ...

Thanks in advance.

+3
source share
1 answer

I think you can still use the size option.

Example: -

size 100k

This means that whenever the size increases by more than 100,000, the rotation begins.

0
source

All Articles