mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
be more precise using common __prefix_line expression (set _daemon to recognize apache and httpd only)
This commit is contained in:
parent
b561af45ef
commit
0e33125129
1 changed files with 3 additions and 0 deletions
|
|
@ -22,6 +22,9 @@ apache-prefix-syslog = %(__prefix_line)s
|
|||
apache-prefix-logfile = \[\]\s
|
||||
apache-prefix-all = (?:%(apache-prefix-logfile)s|%(apache-prefix-syslog)s)?
|
||||
|
||||
# Setting for __prefix_line (only `logging=syslog`):
|
||||
_daemon = (?:apache\d*|httpd(?:/\w+)?)
|
||||
|
||||
apache-prefix = <apache-prefix-<logging>>
|
||||
|
||||
_apache_error_client = <apache-prefix>\[(:?error|\S+:\S+)\]( \[pid \d+(:\S+ \d+)?\])? \[client <HOST>(:\d{1,5})?\]
|
||||
|
|
|
|||
Loading…
Reference in a new issue