Dear listmember,
Ive set up a master/5 replica solution using openldap and syncrepl.
Everything is working as expected.
Regarding logging theres one question left, I was not able to find an answer.
Ive configured ldap to use syslog to write its logfiles. Is it possible to combine loglevel 256 and loglevel sync? Because either Iam able to see every bind/connection/search activity, or all the synchronisation stuff which is going on.
Thanks alot in advance!
Best regards, Daniel
Hi, all of the following lines are equivalent:
loglevel sync stats loglevel 16384 256 loglevel 16640 loglevel 0x4000 0x100 loglevel 0x4100
See man 5 slapd.conf
Daniel Eckstein wrote:
Dear listmember,
Ive set up a master/5 replica solution using openldap and syncrepl.
Everything is working as expected.
Regarding logging theres one question left, I was not able to find an answer.
Ive configured ldap to use syslog to write its logfiles. Is it possible to combine loglevel 256 and loglevel sync? Because either Iam able to see every bind/connection/search activity, or all the synchronisation stuff which is going on.
Thanks alot in advance!
Best regards, Daniel
Ing. Marco DÂ’Ettorre Consultant
SysNet s.n.c. Via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ------------------------------------ Office: +39.0382.573859 (102) Mobile: +39.348.1510674 Email: marco.dettorre@sys-net.it ------------------------------------
Loglevels can be combined. For instance, sync (16384) and stats (256) can be combined either into 16640, or you can just specify "loglevel sync stats" and let slapd figure it out.
See Section 7.1 of the Administrator's Guide (http://www.openldap.org/doc/admin23/guide.html) for more details and a full list.
On Thu, 21 Dec 2006, Daniel Eckstein wrote:
Dear listmember,
Ive set up a master/5 replica solution using openldap and syncrepl.
Everything is working as expected.
Regarding logging theres one question left, I was not able to find an answer.
Ive configured ldap to use syslog to write its logfiles. Is it possible to combine loglevel 256 and loglevel sync? Because either Iam able to see every bind/connection/search activity, or all the synchronisation stuff which is going on.
Thanks alot in advance!
Best regards, Daniel
Daniel Eckstein skrev:
Ive set up a master/5 replica solution using openldap and syncrepl.
Everything is working as expected.
Regarding logging theres one question left, I was not able to find an answer.
Ive configured ldap to use syslog to write its logfiles. Is it possible to combine loglevel 256 and loglevel sync? Because either Iam able to see every bind/connection/search activity, or all the synchronisation stuff which is going on.
Well, 'man slapd.conf'(5) - or html on this (OpenLDAP 2.3.31) rig - says:
The desired log level can be input as a single integer that combines the (ORed) desired levels, both in decimal or in hexadecimal notation, as a list of integers (that are ORed internally), or as a list of the names that are shown between brackets, such that
loglevel 129 loglevel 0x81 loglevel 128 1 loglevel 0x80 0x1 loglevel acl trace
are equivalent.
So if you put "loglevel stats sync" into slapd.conf and restart slapd you'll get what you want.
I can do this with a GUI (gq) on the fly ("olcLogLevel: Stats sync") but I do not find the results illuminating, i.e. I wouldn't want to do this.
--Tonni
openldap-software@openldap.org