mirror of https://github.com/fail2ban/fail2ban
Updated Developing Regex in Fail2ban (markdown)
parent
f368eea103
commit
ec1e2265d8
|
@ -126,7 +126,7 @@ whose output shows '`[6]`' lines that have matched the date timestamp at the beg
|
|||
|
||||
NOTE: Common `rsyslog` syslog daemon may output regular `datepattern` or high-precision `datepattern` (via `$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat` setting in `/etc/rsyslog.conf`) and fail2ban `datepattern` gets both of these date format right.
|
||||
|
||||
In the rare event (and sad case) of '`[0]`' match for a date pattern hit, you can develop a new `datepattern by usng the '`--VD`' option along with '`-l HEAVYDEBUG`' option in your `fail2ban-regex`. Having a [0] means you are dealing with a log text whose `datepattern` that fail2ban has never dealt with before; you’ll need to craft your own `datepattern`.
|
||||
In the rare event (and sad case) of '`[0]`' match for a date pattern hit, you can develop a new `datepattern` by usng the '`--VD`' option along with '`-l HEAVYDEBUG`' option in your `fail2ban-regex`. Having a [0] means you are dealing with a log text whose `datepattern` that fail2ban has never dealt with before; you’ll need to craft your own `datepattern`.
|
||||
|
||||
Such unknown `datepattern` shall be a subject for another blog, not here.
|
||||
|
||||
|
|
Loading…
Reference in New Issue