[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Logging events to a log file
- To: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Subject: Re: Logging events to a log file
- From: Mik J <mikydevel@yahoo.fr>
- Date: Sun, 23 Sep 2012 08:32:10 +0100 (BST)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1348385530; bh=YeVNIzTZo7SdfjgFeEx2UQ6Z3fN1BMHr7ELC4Z44qRE=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=DfHaEdBlH2jG8ADVYZJc7PbMNTkYGA91VlfjpmJOwpgNRwQkO9+GmE/jHsxYxL7pI49AVTHxVvW4WmjJdXRmuiukR5iIZxQAHJGNABiKhyNL9wpxc0PAKuaPAWCggq9YWiQZ2U0ewjwi3d8jlPUIHAj8ehTWLgiXx0ur0gp7qks=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=O7pTV494aClGmUmMt/dthjRWJHXUI016WV+EfJFjS4dku9dwUMY2g+ZYmtJVlxWz5xBK1XErTcqQ4hCO9vUuOlcrhC7EymDn8PuaJmbV+tES1h14HB2EZcUmtmX5i6i4Gmf/t2h4IgWOAjWa6zFBB4ny7jET1FvMDkHl7E/1SxM=;
- In-reply-to: <20120923092518.6da28bd9@pink.avci.de>
- References: <1348338439.85010.YahooMailNeo@web28803.mail.ir2.yahoo.com> <20120923092518.6da28bd9@pink.avci.de>
> De : Dieter Klünter <dieter@dkluenter.de>
> Am Sat, 22 Sep 2012 19:27:19 +0100 (BST)
> schrieb Mik J <mikydevel@yahoo.fr>:
>
>> Hello List,
>>
>>
>> When I start slapd with the option -d 256 I can see what's happening
>> when there's a connection # /usr/local/libexec/slapd -4 -d 256 -u
>> _openldap -g _openldap -h ldaps:///
>>
>> However I would like to have this in a log file and I added these
>> lines to slapd.conf loglevel 256
>> logfile /var/log/slapd.log
>> But my log file remains empty after I start the server with (without
>> -d 256)
>>
>> # /usr/local/libexec/slapd -4 -u _openldap -g _openldap -h ldaps:///
>>
>> However if I start the server with
>> # /usr/local/libexec/slapd -4 -d 256 -u _openldap -g _openldap -h
>> ldaps:/// The events display on the screen and in the slapd.log file
>> as well. This behavior surprises me, am I missing something ?
>>
>> My ldap server version is 2.4.26p0
>
> man slapd(8), read on -d flag, -s flag and -l flag. Furthermore check
> your syslog configuration, slapd logs to local4 as default.
>
> -Dieter
Hello,
Thank you for your answer, I already read the man because asking my question but I will read it again.
My question was about logging the events in a file without using syslog. Maybe I misunderstood the documentation and slapd uses syslog only.
In that case, what's the utility of this directive "logfile /var/log/slapd.log" in slapd.conf ?