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/ :


/var/log/openldap.log
{
        rotate 7
        daily
        missingok
        notifempty
        delaycompress
        compress
        postrotate
                invoke-rc.d rsyslog reload > /dev/null
        endscript
}

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


olcLogLevel: 256



Leave a Reply

  • You must be logged in to post a
    video comment.