• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Debian Log Rotation / Compression questions...

Netopia

Diamond Member
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

 
Ok, I got the auto compression thing:

in /etc/cron.daily/sysklogd and /etc/cron.weekly/sysklogd add the -l switch, change:

savelog -g adm -m 640 -u root -c 7 $LOG >/dev/null
to
savelog -l -g adm -m 640 -u root -c 7 $LOG >/dev/null


But still no word on the wonky file rotation.

Any help is appreciated!

Joe
 
Back
Top