Skip to content

Instantly share code, notes, and snippets.

@bennadel
Last active May 27, 2021 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bennadel/12fae7450b41fc257ff558a9815f4fcf to your computer and use it in GitHub Desktop.
Save bennadel/12fae7450b41fc257ff558a9815f4fcf to your computer and use it in GitHub Desktop.
Including Tracing Headers In Nginx 1.18.0 Access Logs Using Custom Formatting
log_format combined '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
log_format with_request_tracing '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"'
' - "$http_request_id"';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment