Hello,

On 2.4.X i didnt have any issues using rsyslog with "local4.* /var/log/slapd/slapd.log" and I would get all the connection and searches done on the db. Which was great!!

I am having a hard time doing the same thing with 2.5.7.

Without any changes to the service file, just running slapd on rocky linux 8 i get these logs on /var/log/slapd/slapd.log only

Sep 23 10:10:18 localhost slapd[3992243]: @(#) $OpenLDAP: slapd 2.5.7 (Aug 19 2021 17:48:53) $#012#011mockbuild@3b6af787015541c89363999d4338d587:/builddir/build/BUILD/openldap-2.5.7/servers/slapd

If i change the service file with (-d 256):
ExecStart=/opt/symas/lib/slapd -d 256 -h ${SLAPD_URLS} $SLAPD_OPTIONS

I get at least these msgs:

614c8ac4.0dc359b2 0x7fdf0f91f700 conn=1000 fd=17 ACCEPT from IP=[xxxx]:55556 (IP=[xxxx]:389)
614c8ac4.0dc5b882 0x7fdf0f91f700 conn=1000 op=0 BIND dn="" method=128
614c8ac4.0dc709f0 0x7fdf0f91f700 conn=1000 op=0 RESULT tag=97 err=0 qtime=0.000016 etime=0.000135 text=
614c8ac4.17c7146d 0x7fdf0f91f700 conn=1000 op=1 SRCH base="dc=domain,dc=net" scope=2 deref=0 filter="(objectClass=*)"
614c8ac4.36abd8fd 0x7fdf0f91f700 conn=1000 op=1 SEARCH RESULT tag=101 err=4 qtime=0.000028 etime=0.518395 nentries=500 text=
614c8ac5.06b07c4b 0x7fdf0f91f700 conn=1000 op=2 UNBIND
614c8ac5.06b1d67d 0x7fdf0f91f700 conn=1000 fd=17 closed

But unfortunately I do not get them to log into my slapd.log file.
I even added -l local4 but no change.
Is (-d 256) even correct?

/opt/symas/lib/slapd -d ?
Installed log subsystems:

Any                            (-1, 0xffffffff)
Trace                          (1, 0x1)
Packets                        (2, 0x2)
Args                           (4, 0x4)
Conns                          (8, 0x8)
BER                            (16, 0x10)
Filter                         (32, 0x20)
Config                         (64, 0x40)
ACL                            (128, 0x80)
Stats                          (256, 0x100)
Stats2                         (512, 0x200)
Shell                          (1024, 0x400)
Parse                          (2048, 0x800)
Sync                           (16384, 0x4000)
None                           (32768, 0x8000)

Any input as to what I may be doing wrong is much appreciated! 


Thank you,
Dave