Debian Log Rotation
Tom Faska
tom at ubertas.com
Sun Dec 18 11:57:01 EST 2005
Good question, I didn't know at first but googled and found this:
If you look in /etc/cron.daily/sysklogd you'll find where it runs those
rotates... if you add -s "mail.*" to the end of the syslogd-listfiles
command you *should* find that it will stop messing with things.
So, in summary, change:
for LOG in `syslogd-listfiles`
to:
for LOG in `syslogd-listfiles -s "mail.*"`
in /etc/cron.daily/sysklogd
Let us know if this works.
Tom
Christopher Schmidt wrote:
> I use Debian for a web and mail server, hosted in a colocation facility.
> I'm running Debian Sarge, and have set up virtual domains using the
> tutorial at http://workaround.org/articles/ispmail-sarge/ . Everything
> works pretty nicely.
>
> However, I'm now trying to run lire to get log analysis, and my mail
> logs are currently rotated daily. I can't figure out where this is
> done.
>
> It seems to be happening by some call to `savelog` somewhere. However,
> I've looked through my /etc/cron.daily/, and can't find anything
> regarding it there. There is a sysklogd entry, which rotates all files
> in `syslogd-listfiles` -- but that does *not* list /var/log/mail.log
> (only /var/log/syslog).
>
> I can find why it would be rotated weekly (/etc/cron.weekly/sysklogd
> entry runs syslogd-listfiles --weekly, which does include the mail log).
>
> There is nothing in /etc/logrotate.d/ regarding postfix.
>
> /etc/logrotate.conf specifies weekly as the default.
>
> Can anyone tell me why my mail logs are being rotated daily?
>
> (#debian couldn't. http://crschmidt.net/tmp/debian.log)
>
More information about the gnhlug-discuss
mailing list