I was trying to setup a custom logrotate for a ldap log that I have. However, it is not working.
I have setup syslog to log LDAP traffic.
local4.* /var/log/slapd.log
I want to rotate this log because right now, its at 14megs.
Here is the script I added to /etc/logrotate.d
/var/log/slapd.log {
missingok
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
Only problem is, it is not rotating the log.
Any suggestions on what im missing?
Also, on a quick side note, I noticed the the lastlog also is pretty big. Is that another log other people rotate as well? Mine is at 18megs right now.
Thank you.
Jason
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list