</code></pre></div><table><thead><tr><th>Placeholder</th><th>Description</th></tr></thead><tbody><tr><td><code>$proxy_protocol_addr</code></td><td>remote address if proxy protocol is enabled</td></tr><tr><td><code>$remote_addr</code></td><td>the source IP address of the client</td></tr><tr><td><code>$remote_user</code></td><td>user name supplied with the Basic authentication</td></tr><tr><td><code>$time_local</code></td><td>local time in the Common Log Format</td></tr><tr><td><code>$request</code></td><td>full original request line</td></tr><tr><td><code>$status</code></td><td>response status</td></tr><tr><td><code>$body_bytes_sent</code></td><td>number of bytes sent to a client, not counting the response header</td></tr><tr><td><code>$http_referer</code></td><td>value of the Referer header</td></tr><tr><td><code>$http_user_agent</code></td><td>value of User-Agent header</td></tr><tr><td><code>$request_length</code></td><td>request length (including request line, header, and request body)</td></tr><tr><td><code>$request_time</code></td><td>time elapsed since the first bytes were read from the client</td></tr><tr><td><code>$proxy_upstream_name</code></td><td>name of the upstream. The format is <code>upstream-<namespace>-<service name>-<service port></code></td></tr><tr><td><code>$proxy_alternative_upstream_name</code></td><td>name of the alternative upstream. The format is <code>upstream-<namespace>-<service name>-<service port></code></td></tr><tr><td><code>$upstream_addr</code></td><td>the IP address and port (or the path to the domain socket) of the upstream server. If several servers were contacted during request processing, their addresses are separated by commas.</td></tr><tr><td><code>$upstream_response_length</code></td><td>the length of the response obtained from the upstream server</td></tr><tr><td><code>$upstream_response_time</code></td><td>time spent on receiving the response from the upstream server as seconds with millisecond resolution</td></tr><tr><td><code>$upstream_status</code></td><td>status code of the response obtained from the upstream server</td></tr><tr><td><code>$req_id</code></td><td>the randomly generated ID of the request</td></tr></tbody></table><p>Additional available variables:</p><table><thead><tr><th>Placeholder</th><th>Description</th></tr></thead><tbody><tr><td><code>$namespace</code></td><td>namespace of the ingress</td></tr><tr><td><code>$ingress_name</code></td><td>name of the ingress</td></tr><tr><td><code>$service_name</code></td><td>name of the service</td></tr><tr><td><code>$service_port</code></td><td>port of the service</td></tr></tbody></table><p>Sources:</p><ul><li><ahref=http://nginx.org/en/docs/http/ngx_http_upstream_module.html#variables>Upstream variables</a></li><li><ahref=http://nginx.org/en/docs/http/ngx_http_core_module.html#variables>Embedded variables</a></li></ul></article></div></div></main><footerclass=md-footer><divclass=md-footer-nav><navclass="md-footer-nav__inner md-grid"aria-label=Footer><ahref=../custom-template/class="md-footer-nav__link md-footer-nav__link--prev"rel=prev><divclass="md-footer-nav__button md-icon"><svgxmlns=http://www.w3.org/2000/svgviewbox="0 0 24 24"><pathd="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg></div><divclass=md-footer-nav__title><divclass=md-ellipsis><spanclass=md-footer-nav__direction> Previous </span> Custom NGINX template </div></div></a><ahref=../../cli-arguments/class="md-footer-nav__link md-footer-nav__link--next"rel=next><divclass=md-footer-nav__title><divclass=md-ellipsis><spanclass=md-footer-nav__direction> Next </span> Command line arguments </div></div><divclass="md-footer-nav__button md-icon"><svgxmlns=http://www.w3.org/2000/svgviewbox="0 0 24 24"><pathd="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg></div></a></nav></div><divclass="md-footer-metamd-typese