Welcome! Log In Create A New Profile

Advanced

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin
February 11, 2015 10:28AM
Hello!

On Wed, Feb 11, 2015 at 03:20:59PM +0000, Dani Bento wrote:

> Hello,
>
> I was looking in ngx_http_upstream_response_time_variable.
>
> I understand that if the state[i].status is not 0, the
> state[i].response_sec is used.
>
> It is assumed that if a state doesn't have a peer it prints a ":" before the next state (like the upstream_status_variable)
>
> Our problem is that in the log we have:
>
> [200 : 302] (for the status codes)
>
> [0.02 : 1423667767.600] (for the upstream_response_time)

So the question remains: how this happens.

(Note though, that this can easily happen if you'll try to use the
$upstream_response_time variable before the request is finalized,
e.g., in add_header or in 3rd party modules. But it shouldn't
happen during logging, as the request is expected to be finalized
at this time.)

--
Maxim Dounin
http://nginx.org/

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

nginx report a timestamp on upstream_response_time

Dani Bento 1085 February 10, 2015 06:56AM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 572 February 10, 2015 10:28AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 539 February 10, 2015 11:10AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 1161 February 10, 2015 12:54PM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 549 February 10, 2015 01:12PM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 636 February 11, 2015 10:22AM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 566 February 11, 2015 10:28AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 615 February 11, 2015 01:24PM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 632 February 12, 2015 08:28AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 252
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready