HTTP variables

$upstream_bytes_sent variable (HTTP)

Bytes written toward each backend attempt, not the client response size. Version: 1.15.8. byte counts; preserve attempt boundaries No positional arguments. Example: partial http configuration for a disposable synthetic lab; not a complete deployment.

Formal Syntax & Structure

nginx syntaxnginx
$upstream_bytes_sent

Working Example

Example Snippetnginx
# Classify presence without emitting raw backend metadata.map $upstream_bytes_sent $lab_seen_upstream_bytes_sent {    "" absent;    default present;}
Nginx Reference