Apache, detect syslog prefix, simple example

pull/1695/head
benrubson 2017-02-17 08:11:33 +01:00 committed by sebres
parent 4126b16e7c
commit b662cf03ac
1 changed files with 10 additions and 1 deletions

View File

@ -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 <HOST>(:\d{1,5})?\]
_apache_prefix = \[\]\s
_apache_error_client = ^%(_apache_prefix)s\[(:?error|\S+:\S+)\]( \[pid \d+(:\S+ \d+)?\])? \[client <HOST>(:\d{1,5})?\]
datepattern = {^LN-BEG}