Welcome! Log In Create A New Profile

Advanced

Re: how to read $body_bytes_sent nginx variable

Valentin V. Bartenev
November 22, 2016 08:32AM
On Tuesday 22 November 2016 08:22:56 Phani Sreenivasa Prasad wrote:
> on my dev setup, the logs are disabled due to memory constraint. Also the
> log_format directive would log many more fields into that file which I am
> not interested in.
>

You can configure the log_format directive as you want (even to log only one
variable).


> is there a way I can read it through fastcgi param from my fastcgi app? I
> see one problem here is - nginx sends all env variables as a record when the
> request comes initially and later on it doesnt send any more env variables
> after sending the response.
>
> Any solution for this?
>

That's how the FastCGI protocol works.

--
wbr, Valentin V. Bartenev

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

how to read $body_bytes_sent nginx variable

Phani Sreenivasa Prasad November 22, 2016 05:21AM

Re: how to read $body_bytes_sent nginx variable

Maxim Dounin November 22, 2016 07:54AM

Re: how to read $body_bytes_sent nginx variable

Phani Sreenivasa Prasad November 22, 2016 08:02AM

Re: how to read $body_bytes_sent nginx variable

Valentin V. Bartenev November 22, 2016 08:12AM

Re: how to read $body_bytes_sent nginx variable

Phani Sreenivasa Prasad November 22, 2016 08:22AM

Re: how to read $body_bytes_sent nginx variable

noci November 23, 2016 09:22AM

Re: how to read $body_bytes_sent nginx variable

Valentin V. Bartenev November 22, 2016 08:32AM

Re: how to read $body_bytes_sent nginx variable

Phani Sreenivasa Prasad November 22, 2016 08:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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