diff --git a/config/filter.d/apache-common.conf b/config/filter.d/apache-common.conf index 3d1f902b..b8c08ab2 100644 --- a/config/filter.d/apache-common.conf +++ b/config/filter.d/apache-common.conf @@ -1,6 +1,13 @@ # Generic configuration items (to be used as interpolations) in other # apache filters. +# If you use "ErrorLog syslog" in your Apache configuration, +# you should then create the following apache-common.local file : +# [INCLUDES] +# before = common.conf +# [DEFAULT] +# _apache_prefix = %(__prefix_line)s + [INCLUDES] # Load customizations if any available @@ -8,7 +15,9 @@ after = apache-common.local [DEFAULT] -_apache_error_client = \[\] \[(:?error|\S+:\S+)\]( \[pid \d+(:\S+ \d+)?\])? \[client (:\d{1,5})?\] +_apache_prefix = \[\]\s + +_apache_error_client = ^%(_apache_prefix)s\[(:?error|\S+:\S+)\]( \[pid \d+(:\S+ \d+)?\])? \[client (:\d{1,5})?\] datepattern = {^LN-BEG}