diff --git a/chef/cookbooks/common/templates/default/nginx.conf.erb b/chef/cookbooks/common/templates/default/nginx.conf.erb index 3d9bb2ba4..afb99d9b7 100644 --- a/chef/cookbooks/common/templates/default/nginx.conf.erb +++ b/chef/cookbooks/common/templates/default/nginx.conf.erb @@ -14,9 +14,8 @@ http { include mime.types; default_type application/octet-stream; - log_format main '$remote_addr - $remote_user [$time_local] ' - '"$request" $status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; + log_format splunky '$msec code=$status url=$uri bytes=$body_bytes_sent ms=$request_time'; + access_log /usr/local/nginx/logs/access.log splunky; sendfile on;