Greetings!
I do reporting on the mail logs on a Debian machine that's used as a spam/virus gateway mail filter. I do the same thing on an FC4 machine without problem, but on Debian Etch, I've got some wonky log stuff going on. First is that it seems to rotate files whenever it feels like it. I know that isn't the case, but I have not found any rhyme or reason to the rotation, and can find nowhere to control it. For instance, this is the rotation for the last couple weeks:
-rw-r----- 1 root adm 842579 2007-04-23 16:34 /var/log/mail.log
-rw-r----- 1 root adm 2069929 2007-04-23 07:35 /var/log/mail.log.0
-rw-r----- 1 root adm 1494947 2007-04-21 07:35 /var/log/mail.log.1
-rw-r----- 1 root adm 2480129 2007-04-20 07:35 /var/log/mail.log.2
-rw-r----- 1 root adm 45423 2007-04-14 07:39 /var/log/mail.log.3
First it goes about a week, that's fine. But then it rotates the next day, then two days later and then it does it TWICE on the same day!
I've looked at /etc/logrotate.conf , and it shows that I should keep 4 weeks worth and that they should not be compressed...
Which brings me to the next point.... all but the current log are being compressed automatically. I thought the setting was in logrotate.conf , but that's already set to NOT compress (compress is commented out). I've looked at both cron.daily and cron.weekly and looked at the logrotate and sysklogd files, and don't find anything about size (though I'm not versed in whatever it was written in... perl?).
Any ideas? Any help?
Thanks much for any guidance.
Joe
I do reporting on the mail logs on a Debian machine that's used as a spam/virus gateway mail filter. I do the same thing on an FC4 machine without problem, but on Debian Etch, I've got some wonky log stuff going on. First is that it seems to rotate files whenever it feels like it. I know that isn't the case, but I have not found any rhyme or reason to the rotation, and can find nowhere to control it. For instance, this is the rotation for the last couple weeks:
-rw-r----- 1 root adm 842579 2007-04-23 16:34 /var/log/mail.log
-rw-r----- 1 root adm 2069929 2007-04-23 07:35 /var/log/mail.log.0
-rw-r----- 1 root adm 1494947 2007-04-21 07:35 /var/log/mail.log.1
-rw-r----- 1 root adm 2480129 2007-04-20 07:35 /var/log/mail.log.2
-rw-r----- 1 root adm 45423 2007-04-14 07:39 /var/log/mail.log.3
First it goes about a week, that's fine. But then it rotates the next day, then two days later and then it does it TWICE on the same day!
I've looked at /etc/logrotate.conf , and it shows that I should keep 4 weeks worth and that they should not be compressed...
Which brings me to the next point.... all but the current log are being compressed automatically. I thought the setting was in logrotate.conf , but that's already set to NOT compress (compress is commented out). I've looked at both cron.daily and cron.weekly and looked at the logrotate and sysklogd files, and don't find anything about size (though I'm not versed in whatever it was written in... perl?).
Any ideas? Any help?
Thanks much for any guidance.
Joe