Add filter for nginx HTTP errors (4xx and 5xx)

An excessive number of errors is likely abuse of some kind.
This may include application login errors, if the app responds with an appropriate HTTP status code.
pull/3980/head
David Cook 2025-04-02 14:11:47 +11:00
parent fc3e8a5d37
commit 0bb3ed0b0c
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
# Nginx client and server errors (HTTP 4xx or 5xx)
#
# Author: David Cook
# Inspired by https://serverfault.com/a/849859/959055
[Definition]
failregex = <HOST> -.*"(GET|POST|HEAD).*HTTP.*" [4-5][0-9][0-9]