Logrotate not rotating file after file size exceeds the limit.
How do you know the file is not getting rotated?
On a Debian 6 Linode I have, in the default configuration
logrotate was only scheduled by
cron to run once per day, and at a very odd time at that. If only run once per day, naturally it'll only have one opportunity per day to look at the configuration, do the comparisons and perform the rotations required.
So, are you sure you're actually running your logrotate? Might want to check your
/etc/cron*/* to see when and how often logrotate is scheduled to run.
For example, if
logrotate script is present in
/etc/cron.daily, then you may want to move it to
/etc/cron.hourly, or, if hourly is not good enough, create a file in
/etc/cron.d/ with the following content, to run
logrotate every 10 minutes:
*/10 * * * * root /usr/sbin/logrotate /etc/logrotate.conf