Add request time and upstream request time to the nginx logs

Fixes #1026
This commit is contained in:
Joseph Schorr 2015-12-16 13:46:53 -05:00
parent 50f4612c72
commit dd344aba81

View file

@ -5,7 +5,8 @@ real_ip_recursive on;
log_format lb_pp '$remote_addr ($proxy_protocol_addr) '
'- $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
'"$http_referer" "$http_user_agent" '
'($request_time $request_length $upstream_response_time)';
types_hash_max_size 2048;
include /usr/local/nginx/conf/mime.types.default;