improved logging with rsyslog

This commit is contained in:
bunkerity
2020-10-07 17:10:58 +02:00
parent 6e3c2ddcc2
commit aaef370079
10 changed files with 49 additions and 21 deletions

View File

@@ -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

View File

@@ -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