title: Openldap logs not getting generated
body: <p>I have been trying to enable logging in my OpenLDAP setup (in Oracle Enterprise Linux 6.5) , but no logs are being generated in /var/log/slapd/slapd.log.</p>
  <p>Followed these steps to enable logging :</p>
  <ol>
  <li>Edited the slapd.conf file :</li>
  </ol>
  <p><strong># grep -i loglevel /etc/openldap/slapd.conf</strong></p>
  <p><strong>loglevel -1</strong></p>
  <ol start="2">
  <li>Did the setup for the log directory in /var/log/slapd
  <strong># cd /var/log/slapd ; ls -ltr</strong></li>
  </ol>
  <p><strong>-rw------- 1 root root 217 May 21 19:48 slapd.log</strong></p>
  <ol start="3">
  <li>Edited the rsyslog config file</li>
  </ol>
  <p><strong># grep -i local4 /etc/rsyslog.conf</strong></p>
  <p><em><em>local4.</em>                            /var/log/slapd/slapd.log</em>*</p>
  <ol start="4">
  <li>restarted the openldap service and also the rsyslogger :</li>
  </ol>
  <p><strong># service rsyslog restart</strong></p>
  <p><strong># service slapd restart</strong></p>
  <p>But even after doing these steps , we are not seeing logs captured in the slapd.log file . Only log seen is the below line :</p>
  <p><strong>more /var/log/slapd/slapd.log</strong></p>
  <p>May 21 19:48:12 sprdneval slapd[2961]: @(#) $OpenLDAP: slapd 2.4.39 (Aug 16 2014 20:41:55) $#012#011mockbuild@ca-buildj3.us
  .oracle.com:/builddir/build/BUILD/openldap-2.4.39/openldap-2.4.39/build-servers/servers/slapd</p>
  <p>Am i missing to do something blindingly obvious ?</p>
  <p>Regards,
  Hari</p>