From 9e3e8433ebd49eeb302476ae1047a2fca36fe8a1 Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Tue, 17 Nov 2020 19:15:43 +0530 Subject: [PATCH] Update log_format for cache sites Signed-off-by: Riddhesh Sanghvi --- nginx/conf/nginx.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nginx/conf/nginx.conf b/nginx/conf/nginx.conf index b6791dc..79539e5 100644 --- a/nginx/conf/nginx.conf +++ b/nginx/conf/nginx.conf @@ -59,9 +59,10 @@ http { error_log /var/log/nginx/error.log; # Log format Settings - log_format rt_cache '$remote_addr $upstream_response_time $upstream_cache_status [$time_local] ' + log_format rt_cache '$remote_addr $srcache_fetch_status [$time_local] ' '$http_host "$request" $status $body_bytes_sent ' - '"$http_referer" "$http_user_agent"'; + '"$http_referer" "$http_user_agent"' + '$upstream_response_time $request_time'; ## # Gzip Settings