King0770-Notes-Change-LDAP-Log-Levels: Difference between revisions
(ldap log levels & 6.0) |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Change LDAP Log Levels== | {{Unsupported}}==Change LDAP Log Levels== | ||
There are two methods. | There are two methods. | ||
=== Method 1 === | === Method 1 === | ||
Line 5: | Line 5: | ||
zmlocalconfig -e ldap_log_level=256 | zmlocalconfig -e ldap_log_level=256 | ||
With versions ZCS 8 and above - | |||
zmlocalconfig -e ldap_common_loglevel=256 | |||
ldap stop | ldap stop | ||
Line 30: | Line 33: | ||
<pre> | <pre> | ||
Notes from mmorse: | Notes from mmorse: | ||
Default: 32768 (OR 0x8000 OR none) would just log critical stuff | |||
We tried 16640 = stats + sync for a few releases and found it | zmlocalconfig -e ldap_log_level=32768 | ||
zmcontrol stop/start | |||
We tried 16640 = stats + sync for a few releases and found it overwhelming /var/log/zimbra.log - but it's good for debug. | |||
LDAP | LDAP | ||
Master: 32768 none (critical only) | Master: 32768 none (critical only) | ||
Replicas: 49152 = none + sync = 32768 + 16384 (no stats but syncrepl entries | Replicas: 49152 = none + sync = 32768 + 16384 (no stats but syncrepl entries are logged) | ||
are logged) | |||
For instance to set that replica value it would be: | For instance to set that replica value it would be: | ||
Line 43: | Line 48: | ||
OR | OR | ||
zmlocalconfig -e ldap_log_level="none sync" | zmlocalconfig -e ldap_log_level="none sync" | ||
followed by ldap stop/start | |||
You can define it several ways (single interger in decimal or hexadecimal, or keywords) and then you can combine them - for instance these are equivalent: | You can define it several ways (single interger in decimal or hexadecimal, or keywords) and then you can combine them - for instance these are equivalent: | ||
Line 59: | Line 66: | ||
In short, 32768 (OR 0x8000 OR none) = only messages that get logged whatever log level is set, thus you get critical stuff. | In short, 32768 (OR 0x8000 OR none) = only messages that get logged whatever log level is set, thus you get critical stuff. | ||
</pre> | </pre> | ||
Latest revision as of 14:10, 2 April 2015
- This article is a Community contribution and may include unsupported customizations.
Change LDAP Log Levels
There are two methods.
Method 1
zmlocalconfig -e ldap_log_level=256
With versions ZCS 8 and above -
zmlocalconfig -e ldap_common_loglevel=256
ldap stop
ldap start
Method2
**this method does not require ldap stop/start**
ldapmodify -x -h <host> -D "cn=config" -W <hit enter>
<enter ldap_root_password>
dn: cn=config
changetype: modify
replace: olcLogLevel
olcLogLevel: 256 **if you want to disable ldap log, type in 'none'**
<enter> <enter>
Levels
Notes from mmorse: Default: 32768 (OR 0x8000 OR none) would just log critical stuff zmlocalconfig -e ldap_log_level=32768 zmcontrol stop/start We tried 16640 = stats + sync for a few releases and found it overwhelming /var/log/zimbra.log - but it's good for debug. LDAP Master: 32768 none (critical only) Replicas: 49152 = none + sync = 32768 + 16384 (no stats but syncrepl entries are logged) For instance to set that replica value it would be: zmlocalconfig -e ldap_log_level=49152 OR zmlocalconfig -e ldap_log_level="none sync" followed by ldap stop/start You can define it several ways (single interger in decimal or hexadecimal, or keywords) and then you can combine them - for instance these are equivalent: loglevel 129 loglevel 0x81 loglevel 128 1 loglevel 0x80 0x1 loglevel acl trace hexadecimal <> decimal conversion tool 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 (32768 or 0x800), causes those messages that are always logged regardless of the configured loglevel to be output (specified & critical stuff). In fact, if no loglevel (or a 0 level) is defined, no logging occurs, so at least the none level is required to have high priority messages logged. In short, 32768 (OR 0x8000 OR none) = only messages that get logged whatever log level is set, thus you get critical stuff.
ZCS 6
ldap_log_level becomes ldap_common_loglevel.
For more on ldap changes see LDAP#ZCS_6.0.2B