Skip to content

Draft: ITS#10293 Log operations generated by syncrepl at STATS level

Nadezhda Ivanova requested to merge nivanova/openldap:its10293 into master

This patch adds logging of be_* ops, executed by syncrepl, at the STATS level, similarly to how slapd logs incoming operations.

Output looks like this: 67602dc9.254d32e3 0x71ce7ea00640 syncrepl: rid=002 SRCH base="cn=config" scope=2 deref=0 filter="(entryUUID=0ac7a70c-4fff-103f-8c17-090c3815da7e)" 67602dc9.254dbdd6 0x71ce7ea00640 syncrepl: rid=002 SRCH attr=* + 67602dc9.254e422c 0x71ce7ea00640 syncrepl: rid=002 SEARCH RESULT tag=101 err=0 nentries=0 text= 67602dc9.2578bcce 0x71ce7ea00640 syncrepl: rid=002 SRCH base="cn=config" scope=2 deref=0 filter="(entryUUID=0b7e44e4-4fff-103f-97eb-1f628e7aab91)" 67602dc9.2578d2a6 0x71ce7ea00640 syncrepl: rid=002 SRCH attr=* + 67602dc9.2578f2fa 0x71ce7ea00640 syncrepl: rid=002 SEARCH RESULT tag=101 err=0 nentries=0 text= 67602dc9.25790014 0x71ce7ea00640 syncrepl: rid=002 ADD dn="cn=schema,cn=config" 67602dc9.257a2ad9 0x71ce7ea00640 syncrepl: rid=002 RESULT tag=105 err=0 text= 67602dc9.257e93e3 0x71ce7ea00640 syncrepl: rid=002 SRCH base="cn=config" scope=2 deref=0 filter="(entryUUID=0acbdc46-4fff-103f-8e69-43e91e9a6346)" 67602dc9.257e9c16 0x71ce7ea00640 syncrepl: rid=002 SRCH attr=* + 67602dc9.257eb581 0x71ce7ea00640 syncrepl: rid=002 SEARCH RESULT tag=101 err=0 nentries=0 text= 67602dc9.257ebf14 0x71ce7ea00640 syncrepl: rid=002 ADD dn="olcDatabase={-1}frontend,cn=config" 67602dc9.257eee51 0x71ce7ea00640 syncrepl: rid=002 RESULT tag=105 err=68 text= 67602dc9.257ef763 0x71ce7ea00640 syncrepl: rid=002 SRCH base="olcDatabase={-1}frontend,cn=config" scope=0 deref=0 filter="(objectclass=)" 67602dc9.257efd83 0x71ce7ea00640 syncrepl: rid=002 SRCH attr= + 67602dc9.257f3c42 0x71ce7ea00640 syncrepl: rid=002 SEARCH RESULT tag=101 err=0 nentries=0 text=

"syncrepl:" was added to allow grepping for syncrepl output only.

Merge request reports

Loading