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 942 February 10, 2015 06:56AM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 490 February 10, 2015 10:28AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 462 February 10, 2015 11:10AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 1033 February 10, 2015 12:54PM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 463 February 10, 2015 01:12PM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 548 February 11, 2015 10:22AM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 473 February 11, 2015 10:28AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 526 February 11, 2015 01:24PM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 539 February 12, 2015 08:28AM



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

Online Users

Guests: 275
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