openldap logs

Posted: September 15th, 2011 | Author: | Filed under: debian, it, linux | Tags: , | No Comments »

to have a separate logfile for openldap add to /etc/rsyslog.conf:

local4.* /var/log/openldap.log
touch /var/log/openldap.log
/etc/init.d/rsyslog restart

to have the logfile in the logrotation add a config file to /etc/logrotate.d/ :

        rotate 7
                invoke-rc.d rsyslog reload > /dev/null

to change the loglevel edit /etc/ldap/slapd.d/cn\=config.ldif :

olcLogLevel: 256

Leave a Reply