Skip to content

Instantly share code, notes, and snippets.

@yuyudhan
Last active February 6, 2020 11:55
Show Gist options
  • Save yuyudhan/af32ef49dc0c7f70b4c6fcc6301aeac9 to your computer and use it in GitHub Desktop.
Save yuyudhan/af32ef49dc0c7f70b4c6fcc6301aeac9 to your computer and use it in GitHub Desktop.
access_log /var/log/nginx/access-capture.log logstash;
log_format addHeaderlog '$remote_addr $remote_user $time_local "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for" "$request_body" "$http_Authorization" "$http_x_duid" "$http_x_ver" "$upstream_http_x_rqid" $request_time $upstream_connect_time $upstream_header_time $upstream_response_time "-" "-"';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment