Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug bash: Logging correlation IDs doc does not specify the nginx context #8006

Merged
merged 2 commits into from
Oct 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/_hub/kong-inc/correlation-id/overview/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ To edit your Nginx parameters, do the following:

You should now see Correlation ID entries in the access log.


{:.note}
> **Note**: The `log_format` directive must be added inside the HTTP context of the Nginx configuration file. Failing to do so may cause Kong to fail on startup due to invalid Nginx configuration.
lena-larionova marked this conversation as resolved.
Show resolved Hide resolved

Learn more in [Custom Nginx templates & embedding Kong](/gateway/latest/reference/configuration/#custom-nginx-templates--embedding-kong).

You can also use this plugin along with one of the [logging plugins](/hub/#logging), or store the ID on your backend.
Loading