logrotate question/problem
I rotate my logs daily, but am having a problem with my maillog growing too large. It does not seem to be adhering to the parameters set in /etc/logrotate.conf. Here is what I have in /etc/logrotate.conf. I expect to keep 4 versions of any log and don't expect the log to grow greater than 100M at any time. Below is my /etc/logrotate.conf. Shouldn't "size 100M" do what I expect. i.e. rotate the logs when it hits 100M. /var/log/maillog is defined in /etc/logrotate.d/syslog. What am I missing?
# see "man logrotate" for details
# rotate log files weekly
#weekly
# commented out weekly and changed to size due to e-mail errors
size 100M
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
|