On 9/23/21 17:36, Dave Macias wrote:
Option -d sends messages to stderr which most times are sent to systemd-journald but without syslog facility applied.
Thank you for the reply That makes sense as to why when setting rsyslog as "*.* /var/log/slapd/slapd.log" i would get all the connection msg plus non slapd.
I guess then the question becomes, how can I log those "SEARCH/BIND/RESULT/ect" logs with syslog? Is that possible?
If you set loglevel in slapd.conf (or the appropriate attribute in cn=config) slapd will send its log messages to /dev/log. Now you have to find out which logging demon is listening on this socket and how to configure it to match your needs.
Personally I have on my systems:
In file /etc/systemd/journald.conf:
[Journal] Storage=none ForwardToSyslog=yes
In /etc/rsyslog.conf:
$AddUnixListenSocket /dev/log
And I start slapd with -d 0 and loglevel set.
YMMV.
Ciao, Michael.