Permalink
Browse files

Update nginx log format ltsv

  • Loading branch information...
nakabonne committed Oct 20, 2018
1 parent 370eb2e commit 8c65354ed3f7bdd5bf309117ab469202dce83012
Showing with 17 additions and 1 deletion.
  1. +17 −1 webapp/nginx/nginx.conf
@@ -5,7 +5,23 @@ events {
http {
default_type application/octet-stream;
error_log /dev/stdout error;
access_log /dev/stdout combined;
#access_log /dev/stdout combined;
log_format ltsv "time:$time_local"
"\thost:$remote_addr"
"\tforwardedfor:$http_x_forwarded_for"
"\treq:$request"
"\tstatus:$status"
"\tmethod:$request_method"
"\turi:$request_uri"
"\tsize:$body_bytes_sent"
"\treferer:$http_referer"
"\tua:$http_user_agent"
"\treqtime:$request_time"
"\tcache:$upstream_http_x_cache"
"\truntime:$upstream_http_x_runtime"
"\tapptime:$upstream_response_time"
"\tvhost:$host";
access_log /var/log/nginx/access.log ltsv;

ssl_certificate /etc/nginx/_.isucon8.flying-chair.net.crt;
ssl_certificate_key /etc/nginx/_.isucon8.flying-chair.net.key;

0 comments on commit 8c65354

Please sign in to comment.