HTTP variables
$connection_requests variable (HTTP)
Request count on the current connection. Useful to observe connection reuse; do not interpret as total server traffic. Version: 1.3.8 / 1.2.5. OSS documentation; verify build. No positional directive arguments. Example is a partial configuration fragment for a disposable synthetic lab; not a production logging policy.
Formal Syntax & Structure
nginx syntaxnginx
$connection_requestsWorking Example
Example Snippetnginx
# Partial http-context example: isolated synthetic requests only; no real user data.log_format lab_connection_requests escape=json '{"observed":"$connection_requests"}';