Re: how to read $body_bytes_sent nginx variable

2016-11-23 Thread noci
Log through syslog to another system? If the other system isn't listening there is no harm done... (Slightly more network traffic). Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271108,271130#msg-271130 ___ nginx mailing list nginx@nginx.or

Re: how to read $body_bytes_sent nginx variable

2016-11-22 Thread Phani Sreenivasa Prasad
no other way to read this env variable other than reading it from access_log file? is it possible to export this to all other processes running on a system? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271108,271117#msg-271117 ___ nginx ma

Re: how to read $body_bytes_sent nginx variable

2016-11-22 Thread Valentin V. Bartenev
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 wan

Re: how to read $body_bytes_sent nginx variable

2016-11-22 Thread Phani Sreenivasa Prasad
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. 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

Re: how to read $body_bytes_sent nginx variable

2016-11-22 Thread Valentin V. Bartenev
On Tuesday 22 November 2016 08:02:37 Phani Sreenivasa Prasad wrote: > Hi > > So, how can I read this value from my fastcgi app for each request/response? > [..] You can read it from the access_log file. wbr, Valentin V. Bartenev ___ nginx mailing l

Re: how to read $body_bytes_sent nginx variable

2016-11-22 Thread Phani Sreenivasa Prasad
Hi So, how can I read this value from my fastcgi app for each request/response? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271108,271113#msg-271113 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: how to read $body_bytes_sent nginx variable

2016-11-22 Thread Maxim Dounin
Hello! On Tue, Nov 22, 2016 at 05:21:45AM -0500, Phani Sreenivasa Prasad wrote: > Hi > > I want to read the nginx the value of nginx variable $body_bytes_sent from > my fastcgi application to check how many bytes nginx had sent to client? > > I tried something below > > fastcgi_param BODY_BY

how to read $body_bytes_sent nginx variable

2016-11-22 Thread Phani Sreenivasa Prasad
Hi I want to read the nginx the value of nginx variable $body_bytes_sent from my fastcgi application to check how many bytes nginx had sent to client? I tried something below fastcgi_param BODY_BYTES_SENT $body_bytes_sent in my fastcgi_params and trying to read the fastcgi param value from th