mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-09-23 16:47:00 +00:00
- `datepattern = {^LN-BEG}` - only line-begin anchored default patterns
(matches date only at begin of line, or with max distance up to 2 non-alphanumeric characters from line-begin);
- `datepattern = {*WD-BEG}` - only word-begin anchored default patterns;
- `datepattern = ^prefix{DATE}suffix` - exact specified default patterns (using prefix and suffix);
common filter configs gets a more precise, line-begin anchored (datepattern = {^LN-BEG}) resp. custom anchoring default date-patterns;
23 lines
838 B
Text
23 lines
838 B
Text
# Generic configuration items (to be used as interpolations) in other
|
|
# apache filters.
|
|
|
|
[INCLUDES]
|
|
|
|
# Load customizations if any available
|
|
after = apache-common.local
|
|
|
|
[DEFAULT]
|
|
|
|
_apache_error_client = \[\] \[(:?error|\S+:\S+)\]( \[pid \d+(:\S+ \d+)?\])? \[client <HOST>(:\d{1,5})?\]
|
|
|
|
datepattern = {^LN-BEG}
|
|
|
|
# Common prefix for [error] apache messages which also would include <HOST>
|
|
# Depending on the version it could be
|
|
# 2.2: [Sat Jun 01 11:23:08 2013] [error] [client 1.2.3.4]
|
|
# 2.4: [Thu Jun 27 11:55:44.569531 2013] [core:info] [pid 4101:tid 2992634688] [client 1.2.3.4:46652]
|
|
# 2.4 (perfork): [Mon Dec 23 07:49:01.981912 2013] [:error] [pid 3790] [client 204.232.202.107:46301] script '/var/www/timthumb.php' not found or unable to
|
|
#
|
|
# Reference: https://github.com/fail2ban/fail2ban/issues/268
|
|
#
|
|
# Author: Yaroslav Halchenko
|