Skip to content

Commit

Permalink
Update nginx log format ltsv
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed Oct 20, 2018
1 parent 370eb2e commit 8c65354
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion webapp/nginx/nginx.conf
Expand Up @@ -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;
Expand Down

0 comments on commit 8c65354

Please sign in to comment.