[Techtalk] rotating log files

Maria McKinley maria at shadlen.org
Fri Sep 18 00:47:06 UTC 2009


Greetings,

I added the line

local4.* /var/log/slapd.log

to /etc/rsyslog.conf to create a slapd log file. So far so good. File is 
created and filled as expected. I added the file /etc/logrotate.d/slapd
containing:

/var/log/slapd.log {
   rotate 7
   daily
   compress
   delaycompress
   missingok
   notifempty
}

But the file was ignored, and the log not rotated. I tried adding the 
same thing to logrotate.conf, but still no joy. Any ideas? Other things 
are being rotated just fine. Debian Lenny.

thanks,
maria


More information about the Techtalk mailing list