Welcome! Log In Create A New Profile

Advanced

Error Log - 403 access logs

February 12, 2016 05:32PM
We use our nginx error logs to monitor our system closely. Recently, we've been hit with a lot of requests with malicious intent, and thus have blocked their IPs using a "deny " directive. This has worked as expected, but unfortunately, our error logs are still flooded with "error" with "access forbidden by rule...." messages.

Why is a successful denial being logged as an error? I would expect that this is correct behaviour, and thus should not be logged as an error.

In any event, is their any way to suppress 403 denied messages from the error log without bumping up the logging level? We don't want to change the log level, as the "upstream timed out" error is also at level "error" and is something we really want to keep an eye on.
Subject Author Posted

Error Log - 403 access logs

intercollector February 12, 2016 05:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready