add upstream timing to http log format

This commit is contained in:
Daniel Micay 2023-03-07 14:18:27 -05:00
parent 73cca1dbfb
commit 937be19e46

View File

@ -74,7 +74,8 @@ http {
log_format main '$connection $remote_addr $remote_user $ssl_protocol $server_protocol '
'$host $request_method "$request_uri" $status $request_length $body_bytes_sent/$bytes_sent '
'$request_time "$http_referer" "$http_user_agent"';
'$request_time $upstream_connect_time/$upstream_header_time/$upstream_response_time '
'"$http_referer" "$http_user_agent"';
access_log syslog:server=unix:/dev/log,nohostname main;
log_not_found off;