3台ldap服务器中有一台ldap从服务器老是出error,但是怎么都找不到原因。
能不能通过建立openldap的日志文件,通过这个日志文件找到出error的原因?
loglevel该怎么设置才能满足我的需要?
man slapd.conf 的loglevel参数
oglevel [...]
Specify the level at which debugging statements and operation statistics should be syslogged (currently logged to the
syslogd(8) LOG_LOCAL4 facility). They must be considered subsystems rather than increasingly verbose log levels.
Some messages with higher priority are logged regardless of the configured loglevel as soon as some logging is
configured, otherwise anything is logged at all. Log levels are additive, and available levels are:
1 (0x1 trace) trace function calls
2 (0x2 packets) debug packet handling
4 (0x4 args) heavy trace debugging (function args)
8 (0x8 conns) connection management
16 (0x10 BER) print out packets sent and received
32 (0x20 filter) search filter processing
64 (0x40 config) configuration file processing
128 (0x80 ACL) access control list processing
256 (0x100 stats) stats log connections/operations/results
512 (0x200 stats2) stats log entries sent
1024 (0x400 shell) print communication with shell backends
2048 (0x800 parse) entry parsing
4096 (0x1000 cache) caching (unused)
8192 (0x2000 index) data indexing (unused)
16384 (0x4000 sync) LDAPSync replication
32768 (0x8000 none) only messages that get logged whatever log level is set
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. The keyword any can be used as a shortcut to enable logging at all levels (equivalent to -1). The
keyword none, or the equivalent integer representation, causes those messages that are logged regardless of the
configured loglevel to be logged. In fact, if loglevel is set to 0, no logging occurs, so at least the none level is
required to have high priority messages logged. The loglevel defaults to stats.
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。