HTTP variables

$connection variable (HTTP)

Connection serial identifier for correlating multiple requests on one transport connection. Not a durable global request ID. 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

Working Example

Example Snippetnginx
# Partial http-context example: isolated synthetic requests only; no real user data.log_format lab_connection escape=json '{"observed":"$connection"}';
Nginx Reference