Unverified Commit 7ee9ac34 authored by Ben Cordero's avatar Ben Cordero
Browse files

Add request duration to the nginx log format

Bump to 0.3.1

- log `$request_time`; request processing time in seconds (millisecond resolution).
- stop logging unusable information, e.g. private remote ips, proxy path information.
parent 5d00d9cf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
# `nginx-sidecar` changelog

## 0.3.1

- Log `$request_time`; request processing time in seconds (millisecond resolution).
- Stop logging unusable information, e.g. private remote IPs, proxy path information.

## 0.3.0

- Allow `client_body_buffer_size` to be overridden.
+1 −1
Original line number Diff line number Diff line
0.3.0
0.3.1
+3 −3
Original line number Diff line number Diff line
@@ -39,9 +39,9 @@ http {
  include /etc/nginx/mime.types;
  default_type application/octet-stream;

  log_format  main  '[nginx] $remote_addr - $remote_user [$time_local] "$request" '
                    '$status $body_bytes_sent "$http_referer" '
                    '"$http_user_agent" "$http_x_forwarded_for"';
  log_format  main  '[nginx]  path=$request '
                    'status=$status duration=$request_time size=$body_bytes_sent '
                    '"$remote_user" "$http_referer" "$http_user_agent"';

  # Log to stdout.
  # Use the stdout of init on Docker to get the logs to the log drain.