[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: What expect to log at info level?
Am 19.09.2011 08:47, schrieb Nick Urbanik:
> Dear Team,
>
> I'm using CentOS 5, some machines with OpenLDAP 2.3.43-12, some with
> 2.4.23-15, on both 32 and 64-bit architectures.
>
> I am puzzled by the lack of logging I see.
>
> In all cases, I am using slapd.conf OpenLDAP configuration.
>
> I am running slapd with the option -l local0:
> # ps auxwww | grep slap[d]
> ldap 17866 0.0 1.7 242104 9000 ? Ssl 15:54 0:00 /usr/sbin/slapd -h ldap:/// -u ldap -l local0
>
> With this in /etc/syslog.conf:
> local0.info -/var/log/ldap
>
> and this:
> # grep loglevel /etc/openldap/slapd.conf
> loglevel -1
>
> I get nothing logged when I restart OpenLDAP, nor when I search (and
> get output).
>
> However, if I change the /etc/syslog.conf entry to:
> local0.* -/var/log/ldap
>
> I get plenty of output into /var/log/ldap.
>
> QUESTIONS:
>
> 1. What should I expect to be logged at info priority with loglevel -1?
> 2. Does anyone have any suggestions of what I may be missing here?
Hi,
as far as I know, OpenLDAP doesn't really use syslog priorities. You
have to set at least 'debug' and then control what you want to log with
the loglevel setting in slapd.conf.
Regards,
Christian Manal