[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#6659) logfile directive not logging any log



Hi.

Thank you for your reply!

I am running multiple BDII servers (listening on different port), and
I need them to log to different location. If I understand correctly,
"logfile" directive only works to capture stderr messages (not stats,
or other logs currently sent to syslog). Since I can't tell syslog to
log to a different file based on which instance of LDAP server, logs
from both server goes to a single file in /var/log.

Is there anyway that I can redirect logs from each LDAP server to a
different locations?

On Tue, Sep 28, 2010 at 8:26 AM,  <masarati@aero.polimi.it> wrote:
>> Full_Name: Soichi Hayashi
>> Version: 2.3.43-12.el5_5.2
>> OS: RHEL5
>> URL: ftp://ftp.openldap.org/incoming/
>> Submission from: (NULL) (99.50.225.74)
>>
>>
>> I have following in my slapd.conf
>>
>> logfile /var/log/ldap.log
>>
>> When I start slapd, it creates the file specified but the filesize remai=
ns
>> 0
>> although I see a lot of log sent to syslog.
>>
>> It looks like the logging through "logfile" directive is not working.
>
> According to the documentation, this directive collects messages that are
> sent to stderr when "-d" is used, so it is not related to syslog. =A0It i=
s
> equivalent to
>
> $ slapd -d <level> >>/var/log/ldap.log 2>&1
>
> I've checked recent code and it works as expected. =A0Unless this is what
> you're expecting, and it does not happen, this ITS will be closed.
>
> p.
>
>