Issue 7046 - OpenLDAP logs nothing at info priority, excessive at debug priority
Summary: OpenLDAP logs nothing at info priority, excessive at debug priority
Status: VERIFIED WONTFIX
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- enhancement
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-19 23:34 UTC by nick.urbanik@optusnet.com.au
Modified: 2023-10-12 16:45 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description nick.urbanik@optusnet.com.au 2011-09-19 23:34:47 UTC
Full_Name: Nick Urbanik
Version: 2.3.43-12 and 2.4.23-15
OS: CentOS 5
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (203.10.68.69)


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
23.753232

In other words, we were getting nearly 24 gigabytes of logging *each* *day*.

I raised this in the openldap-technical mailing list:
http://www.openldap.org/lists/openldap-technical/201107/msg00205.html
but found that this is by design:
http://www.openldap.org/lists/openldap-technical/201109/msg00223.html

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.
Comment 1 Howard Chu 2011-09-30 10:09:10 UTC
moved from Incoming to Software Enhancements
Comment 2 Quanah Gibson-Mount 2023-10-12 16:45:39 UTC
better solution is to use local logging introduced with openldap 2.6