OpenLDAP AccessLogs out of hand
<p>I've got over 150 GB of logs in /var/lib/ldap/accesslog and for some reason they won't rotate out or purge old logs.  I'm not sure what I'm missing.</p>

<p>I'm using HDB.</p>

<p>I'm using an OLC setup, so I have no slapd.conf file.</p>

<p>My Slapd version is 2.4.31-1+nmu2ubuntu8.2</p>

<p>My AccessLog overlay is configured with:</p>

<pre><code>dn: olcOverlay={1}accesslog
objectClass: olcOverlayConfig
objectClass: olcAccessLogConfig
olcOverlay: {1}accesslog
olcAccessLogDB: cn=accesslog
olcAccessLogOps: writes
olcAccessLogPurge: 7+00:00 1+00:00
olcAccessLogSuccess: TRUE
...
</code></pre>

<p>Unfortunately I still have log files dated from November of 2014, which is probably when this server was upgraded to Ubuntu 14.04 LTS and the LDAP services were re-initialized from a backup LDIF file.</p>

<p>I've tried creating a DB_CONFIG file in the accesslog directory containing the following:</p>

<pre><code>set_flags DB_LOG_AUTOREMOVE
</code></pre>

<p>to no avail.</p>