Welcome! Log In Create A New Profile

Advanced

unable to log upstream_bytes_sent

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 4.7 KB open | download Chad Hansen via nginx 04/25/2017 Read message
smime.p7s 4.7 KB open | download Chad Hansen via nginx 05/01/2017 Read message
Chad Hansen via nginx
April 25, 2017 02:54PM
I'm running nginx 1.11.9, and I get an error any time I try to use
bytes_sent, upstream_bytes_sent, or upstream_bytes_received. I've tried
logging directly in a log format, or using in a map:

<in http context>

map $request_method $chad_sent {
default $upstream_bytes_sent;
}

map $request_method $chad_received {
default $upstream_bytes_received;
}

This results in:

me@here:~/Downloads$ sudo service nginx restart
* Restarting nginx nginx

nginx: [emerg] unknown "upstream_bytes_sent" variable
nginx: configuration file /etc/nginx/nginx.conf test failed

It's unclear to me if there's something wrong with my build, or if I have
to use a stream context, or some other issue.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - smime.p7s (4.7 KB)
Subject Author Posted

unable to log upstream_bytes_sent Attachments

Chad Hansen via nginx April 25, 2017 02:54PM

Re: unable to log upstream_bytes_sent Attachments

Chad Hansen via nginx May 01, 2017 04:06PM

Re: unable to log upstream_bytes_sent

Igal @ Lucee.org May 01, 2017 04:52PM

Re: unable to log upstream_bytes_sent

itpp2012 May 01, 2017 05:17PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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