summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2023-02-10 08:24:04 -0500
committerDaniel Micay <danielmicay@gmail.com>2023-02-10 08:28:02 -0500
commit30b5aafe321d713a9ed7b79f88232f28a073033b (patch)
treea83e4f1d064b7c6ffcc38ed9598ec6d7fee09694
parentb903dd72ace8e7340b233fdeb81a8841d42fc8d3 (diff)
add request time to log format
-rw-r--r--nginx/nginx.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 201a66a8..6a80bd94 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;