Skip to content

Commit

Permalink
add request_time and upstream_response_time to nginx logs
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed Jun 27, 2023
1 parent c8e8035 commit 11bf226
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ 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 $upstream_response_time';

# https://www.nginx.com/blog/using-nginx-logging-for-application-performance-monitoring/
# use that log for troubleshooting the app performance
Expand Down

0 comments on commit 11bf226

Please sign in to comment.