<div dir="ltr">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:<div><pre style="user-select: text; top: -99px;"><in http context></pre><pre style="user-select: text; top: -99px;">map $request_method $chad_sent {
default $upstream_bytes_sent;
}
map $request_method $chad_received {
default $upstream_bytes_received;
}</pre>This results in:<pre style="user-select: text; top: -99px;">me@here:~/Downloads$ sudo service nginx restart
* Restarting nginx nginx</pre><pre style="user-select: text; top: -99px;">nginx: [emerg] unknown "upstream_bytes_sent" variable
nginx: configuration file /etc/nginx/nginx.conf test failed</pre>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.</div></div>