HTTP variables
$body_bytes_sent variable (HTTP core)
Bytes sent excluding response headers. Distinct from total bytes sent.
Formal Syntax & Structure
nginx syntaxnginx
$body_bytes_sentWorking Example
Example Snippetnginx
log_format sample '$body_bytes_sent';# Illustrative value: 128