From 84219d55fef728ce88750c6ec32134eb5711f40e Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 7 Mar 2023 14:17:51 -0500 Subject: [PATCH] add upstream timing to http log format --- nginx/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index cb001416..24b138f3 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -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;