Welcome! Log In Create A New Profile

Advanced

Re: Need to identify blocked requests vs other requests

Maxim Dounin
May 16, 2012 04:08AM
Hello!

On Tue, May 15, 2012 at 09:09:11PM -0300, Guzmán Brasó wrote:

> Hello there,
>
> As limit_req returns 503 as well other 503 (service unavailable) native
> errors I need a way to differentiate them in the access log.
>
> One easy way would be to be able to set the status limit_req returns, would
> be that possible?
>
> The main reason I'm asking this it's because we analyze our logs in real
> time to alert on certain values, until limit_req I used to hsend alerts if
> more than X 503 status were seen in a time range. However, now I've
> limit_req legitimate 503 which have nothing to do with the 503 of Service
> unavailable which indeed need to take action.

The only cases when nginx generates 503 by itself is limit_req and
limit_conn. Hence simple solution would be to log $upstream_status.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Need to identify blocked requests vs other requests

valor May 15, 2012 08:10PM

Re: Need to identify blocked requests vs other requests

Maxim Dounin May 16, 2012 04:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 136
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready