Description
Description
In the Setting Up the Access Log section of the documentation, the example for the upstream_time
log format shows an inconsistency:
rt=$request_time uct="$upstream_connect_time" uht="$upstream_header_time" urt="$upstream_response_time"
Specifically:
- The
$request_time
variable is not surrounded by double quotes, while the other variables are. - This inconsistency could lead to parsing issues, formatting confusion, or unexpected behavior when reading or processing logs.
Suggested Fixes
- Surround
$request_time
with double quotes for consistency:rt="$request_time" uct="$upstream_connect_time" uht="$upstream_header_time" urt="$upstream_response_time"
Priority
Medium — While the current example works, inconsistencies in examples can cause misunderstandings, especially for users parsing logs programmatically.
Screenshots
Reference
- Customer feedback received via NGINX article satisfaction survey.