diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2023-03-07 14:17:51 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2023-03-07 14:17:51 -0500 |
| commit | 84219d55fef728ce88750c6ec32134eb5711f40e (patch) | |
| tree | 24b1fedd7bb662f35080334b2cb6ccd8b4545e1e | |
| parent | bbb7758f683955d3367af344338c90882164187a (diff) | |
add upstream timing to http log format
| -rw-r--r-- | nginx/nginx.conf | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
