mirror of https://github.com/fail2ban/fail2ban
Apache, detect syslog prefix, simple example
parent
4126b16e7c
commit
b662cf03ac
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in New Issue