improved logging with rsyslog
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
before = common.conf
|
||||
|
||||
[Definition]
|
||||
failregex = .* nginx: <HOST> - .* \[.*\] ".*" (%FAIL2BAN_STATUS_CODES%) .* ".*" ".*"
|
||||
failregex = <HOST> - .* \[.*\] ".*" (%FAIL2BAN_STATUS_CODES%) .* ".*" ".*"
|
||||
ignoreregex =
|
||||
datepattern = %%d/%%b/%%Y:%%H:%%M:%%S
|
||||
|
||||
@@ -4,4 +4,4 @@ findtime = %FAIL2BAN_FINDTIME%
|
||||
maxretry = %FAIL2BAN_MAXRETRY%
|
||||
enabled = true
|
||||
action = nginx-action
|
||||
logpath = /var/log/nginx.log
|
||||
logpath = /var/log/access.log
|
||||
|
||||
Reference in New Issue
Block a user