From 4540f101751f3615cbb59317cd2432b0ea22420c Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 10 Feb 2023 08:28:49 -0500 Subject: [PATCH] add request time to log format --- nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 5b92823..0fb889c 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -66,7 +66,7 @@ http { log_format main '$connection $remote_addr $remote_user $ssl_protocol $server_protocol ' '$host "$request_uri" $status $request_length $body_bytes_sent/$bytes_sent ' - '"$http_referer" "$http_user_agent"'; + '$request_time "$http_referer" "$http_user_agent"'; access_log syslog:server=unix:/dev/log,nohostname main; error_log syslog:server=unix:/dev/log,nohostname; log_not_found off;