Add request_time and upstream_response_time to nginx log

This commit is contained in:
Josh Hawkins 2025-10-01 08:41:25 -05:00
parent 923412ec1c
commit 47508245af

View File

@ -17,7 +17,9 @@ http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
'"$http_user_agent" "$http_x_forwarded_for" '
'request_time="$request_time" upstream_response_time="$upstream_response_time"';
access_log /dev/stdout main;