Error Log - 403 access logs

We use our nginx error logs to monitor our system closely. Recently,
been hit with a lot of requests with malicious intent, and thus have
their IPs using a "deny " directive. This has worked as expected, but
unfortunately, our error logs are still flooded with “error” with
forbidden by rule…” messages.

Why is a successful denial being logged as an error? I would expect
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
log level, as the “upstream timed out” error is also at level “error”
and is
something we really want to keep an eye on.

Posted at Nginx Forum: