Skip to content

Commit

Permalink
Fix log format documentation (kubernetes#2219)
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf authored Mar 20, 2018
1 parent df50487 commit df00b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user-guide/log-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The default configuration uses a custom logging format to add additional informa

```
log_format upstreaminfo '{{ if $cfg.useProxyProtocol }}$proxy_protocol_addr{{ else }}$remote_addr{{ end }} - '
'[$proxy_add_x_forwarded_for] - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" '
'[$the_real_ip] - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" '
'$request_length $request_time [$proxy_upstream_name] $upstream_addr $upstream_response_length $upstream_response_time $upstream_status';
```

Expand All @@ -17,7 +17,7 @@ Description:

- `$proxy_protocol_addr`: if PROXY protocol is enabled
- `$remote_addr`: if PROXY protocol is disabled (default)
- `$proxy_add_x_forwarded_for`: the `X-Forwarded-For` client request header field with the $remote_addr variable appended to it, separated by a comma
- `$the_real_ip`: the source IP address of the client
- `$remote_user`: user name supplied with the Basic authentication
- `$time_local`: local time in the Common Log Format
- `$request`: full original request line
Expand Down

0 comments on commit df00b03

Please sign in to comment.