Skip to content

Commit 142bde9

Browse files
committedSep 16, 2024··
Add Forwarded header among structured log values.
1 parent f92faae commit 142bde9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎config/conf.d/001-structured-logs.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
log_format structured '{"requestId": "$request_id", "status": $status, "request": "$request", "remoteAddr": "$remote_addr", "http_x_forwarded_for": "$http_x_forwarded_for", "proxy_add_x_forwarded_for": "$proxy_add_x_forwarded_for", "body_bytes_sent": $body_bytes_sent, "http_referer": "$http_referer", "http_user_agent": "$http_user_agent"}';
1+
log_format structured '{"requestId": "$request_id", "status": $status, "request": "$request", "remoteAddr": "$remote_addr", "http_x_forwarded_for": "$http_x_forwarded_for", "proxy_add_x_forwarded_for": "$proxy_add_x_forwarded_for", "forwarded": "http_forwarded", "body_bytes_sent": $body_bytes_sent, "http_referer": "$http_referer", "http_user_agent": "$http_user_agent"}';

0 commit comments

Comments
 (0)
Please sign in to comment.