log_format

Syntax: log_format name [escape=default|json] string ...;
Default:
Context: stream

Specifies the log format, for example:

log_format proxy '$remote_addr [$time_local] '
                 '$protocol $status $bytes_sent $bytes_received '
                 '$session_time "$upstream_addr" '
                 '"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';

The escape parameter (1.11.8) allows setting json or default characters escaping in variables, by default, default escaping is used.

doc_nginx
2017-02-09 07:06:54
Comments
Leave a Comment

Please login to continue.