diff --git a/jobs/nginx/templates/nginx.conf.erb b/jobs/nginx/templates/nginx.conf.erb index 3bb5f4e..fec2b96 100644 --- a/jobs/nginx/templates/nginx.conf.erb +++ b/jobs/nginx/templates/nginx.conf.erb @@ -26,11 +26,13 @@ http { <% if p('a9s_ssl_gateway.enable_proxy_protocol') %> log_format main '$proxy_protocol_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; + '"$http_user_agent" "$http_x_forwarded_for" ' + '$connection $connection_requests $request_length $request_time'; <% else %> log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; + '"$http_user_agent" "$http_x_forwarded_for" ' + '$connection $connection_requests $request_length $request_time'; <% end %> access_log /var/vcap/sys/log/nginx/access.log main;