I want to debug some authentication & authorization issues on my webserver, particularly with mod_authnz_ldap and other mod_auth* modules.
So I set LogLevel debug
in the Apache configuration, either globally or for a single VirtualHost. This provides me with useful information from mod_authnz_ldap , but it also spews out a ton of noise from the SSL modules. See below for an example.
Is there a way to reduce the LogLevel for ssl_engine* , while still maintaining the loglevel for mod_authnz_ldap?
Yes, I could exclude the lines using something like grep -v ssl_engine logfile
, but I also want to exclude this extra data from some other syslog parsing tools. I would rather reduce the logging from the source, instead of excluding it at the destination.
[Tue Jul 06 16:55:31 2010] [debug] ssl_engine_io.c(1830): | 0100: 12 23 e7 0f 45 1f 1f d3-ed 12 f8 12 1f a9 90 85 .+..(........... |
[Tue Jul 06 16:55:31 2010] [debug] mod_authnz_ldap.c(474): [client 10.10.10.123] [96991] auth_ldap authenticate: accepting joe
[Tue Jul 06 16:55:31 2010] [debug] mod_authnz_ldap.c(730): [client 10.10.10.123] [96991] auth_ldap authorise: require group: authorisation successful (attribute memberUid) [Comparison true (cached)][Compare True]
[Tue Jul 06 17:02:17 2010] [debug] ssl_engine_io.c(1830): | 0023: 23 ff 29 5a 4b bd 4c e6-bc 36 22 9c c3 22 c2 4b ..)ZK.L..6u....K |
[Tue Jul 06 17:02:17 2010] [debug] ssl_engine_io.c(1830): | 0023: 23 ff 29 5a 4b bd 4c e6-bc 22 75 9c c3 b6 22 4b ..)blahblah|