Full_Name: Nick Urbanik
Version: 2.3.43-12 and 2.4.23-15
OS: CentOS 5
Submission from: (NULL) (220.127.116.11)
To my great surprise, OpenLDAP logs nothing at info priority, but excessive
amounts at debug priority, even when the loglevel is set to stats.
Here are examples of the size of log files holding *nothing* but OpenLDAP
stats logging in a production server:
# ls -lSr | tail -n4
-rw------- 1 root root 7160148590 Jul 28 10:48 ldap
-rw------- 1 root root 24102619198 Jul 26 04:02 ldap.3
-rw------- 1 root root 25034865261 Jul 27 04:02 ldap.2
-rw------- 1 root root 25504838803 Jul 28 04:02 ldap.1
$ bc -ql
scale = 6
25504838803 / 2^30
In other words, we were getting nearly 24 gigabytes of logging *each* *day*.
I raised this in the openldap-technical mailing list:
but found that this is by design:
OpenLDAP should log at info priority at least the following:
* when it is starting up
* when it is shutting down cleanly
* any errors, indicating issues that the sys admin should pay attention to
* (perhaps): one line for each connection.