Syntax: | log_format
|
---|---|
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.
Please login to continue.