</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>value of the <code>X-Request-ID</code> HTTP header. If the header is not set, a randomly generated ID.</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=https://nginx.org/en/docs/http/ngx_http_upstream_module.html#variables>Upstream variables</a></li><li><ahref=https://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-meta md-typeset"><divclass="md-footer-meta__inner md-grid"><divclass=md-copyright> Made with <ahref=https://squidfunk.github.io/mkdocs-material/target=_blankrel=noopener> Material for MkDocs </a></div></div></div></footer></div><divclass=md-dialogdata-md-component=dialog><divclass="md-dialog__inner md-typeset"></div></div><scriptid=__configtype=application/json>{"base":"../../..","features":["navigation.tabs","navigation.tabs.sticky","navigation.instant","navigation.sections"],"search":"../../../assets/javascripts/workers/search.f886a092.min.js","translations":{"clipboard.copied":"Copiedtoclipboard","clipboard.copy":"Copytoclipboard","search.result.more.one":"1moreonthispage","search.result.more.other":"#moreonthispage","search.result.none":"Nomatchingdocuments","search.result.one":"1matchingdocument","search.result.other":"#matchingdocuments","search