特にmod_authnz_ldapや他のmod_auth *モジュールを使用して、Webサーバーで認証と承認の問題をデバッグしたい。
そのLogLevel debug
ため、グローバルに、または単一のVirtualHostに対して、Apache構成を設定しました。これによりmod_authnz_ldapから有用な情報が得られますが、SSLモジュールから大量のノイズが吐き出されます。例については、以下を参照してください。
mod_authnz_ldapのログレベルを維持しながら、ssl_engine *のLogLevelを下げる方法はありますか?
はい、次のようなものを使用して行を除外できgrep -v ssl_engine logfile
ますが、他のsyslog解析ツールからこの余分なデータも除外したいです。宛先でログを除外するのではなく、ソースからのログを減らしたいと思います。
[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|