Skip to content

Need help with failregex #3221

Answered by sebres
ghost asked this question in Q&A
Feb 17, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote
[Definition]
failregex = ^\s*(?:\[\] )?\[evasive\d+:error\] \[[^\]]*\] \[client <ADDR>:\d+\] client denied by server configuration\b

(?:\[\] )? matches the remaining [] after fail2ban cuts out the timestamp matching default datepattern (optional if it'd change or if the backend switches to systemd journal).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected by sebres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant