Skip to content

N+ Configure Logging: Inconsistent quoting in log format example in Access Log setup documentation #464

Closed
@travisamartin

Description

@travisamartin

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

Image

Image

Reference

  • Customer feedback received via NGINX article satisfaction survey.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcustomer-feedbackproduct/nginx-plusNGINX Plus (and NGINX Open Source in docs.ngninx.com)

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions