openldap-technical@openldap.org

hello


Openldap SYSLOG

olcLogFileFormat: syslog-utc

# "\"yyyy-MM-dd'T'HH:mm:ss,SSSXXX\", UTC"

olcLogFileFormat: debug | syslog-utc | syslog-localtime
Specify the prefix format for messages written to the logfile. The debug format 
is the normal format used for slapd debug messages, with a timestamp in 
hexadecimal, followed by a thread ID.  The other options are to use  sys‐log(3) 
style prefixes, with timestamps either in UTC or in the local timezone. The 
default is debug format.



Syslog-utc

before

Sep  3 12:52:37 whs dhcpcd[477]: wlan0: expired address ...

Sep  3 12:52:37 whs dhcpcd[477]: wlan0: part of Router Advertisement expired

Sep  3 12:52:37 whs dhcpcd[477]: wlan0: deleting route to ...

after

2020-09-03 13:00:49 systemd[1]: rsyslog.service: Succeeded.

2020-09-03 13:00:49 systemd[1]: Stopped System Logging Service.

2020-09-03 13:00:49 systemd[1]: Starting System Logging Service...


 i add in config :

olcLogLevel: 256

# 256    (0x100 stats) connections, LDAP operations,  results (recommended)

olcLogFile: /qoi/qoiadmaa/instance_rit/openldap_log/slapd.log

olcLogFileFormat: syslog-utc

# "\"yyyy-MM-dd'T'HH:mm:ss,SSSXXX\", UTC"

olcLogFileOnly: TRUE

olcLogFileRotate: 99 1000 24

#99 old logfiles will be retain, 1000 MBs of data will be allowed until a 
rotation, 24 hours will elapse for a rotation


but slapd.log  is not in after format and UTC

why ?



best regards

JM Lacombe
email: jmlaco...@hotmail.com

Reply via email to