Skip to content

Instantly share code, notes, and snippets.

@d-shimizu
Created August 18, 2020 15:04
Show Gist options
  • Save d-shimizu/b9b6ba69a8c4223e7644766f32e4e3fa to your computer and use it in GitHub Desktop.
Save d-shimizu/b9b6ba69a8c4223e7644766f32e4e3fa to your computer and use it in GitHub Desktop.
log_format ltsv "time:$time_local"
"\thost:$remote_addr"
"\turi:$request_uri"
"\tmethod:$request_method"
"\tforwardedfor:$http_x_forwarded_for"
"\treq:$request"
"\tstatus:$status"
"\tsize:$body_bytes_sent"
"\treferer:$http_referer"
"\tua:$http_user_agent"
"\treqtime:$request_time"
"\tcache:$upstream_http_x_cache"
"\truntime:$upstream_http_x_runtime"
"\tvhost:$host";
access_log /var/log/nginx/access.log.ltsv ltsv;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment