Skip to content

Commit

Permalink
[nginx] Add request id to nginx log
Browse files Browse the repository at this point in the history
Chef Client sends a request id (X-REMOTE-REQUEST-ID) with every
request. This adds logging to nginx so that we can track that.

Signed-off-by: Mark Anderson <[email protected]>
  • Loading branch information
markan committed Sep 4, 2018
1 parent d0cf9b9 commit 5c44856
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ http {
log_format opscode '$remote_addr - $remote_user [$time_iso8601] '
<% end -%>
'"$request" $status "$request_time" $body_bytes_sent '
'"$http_referer" "$http_user_agent" "$upstream_addr" "$upstream_status" "$upstream_response_time" "$http_x_chef_version" "$http_x_ops_sign" "$http_x_ops_userid" "$http_x_ops_timestamp" "$http_x_ops_content_hash" $request_length';
'"$http_referer" "$http_user_agent" "$upstream_addr" "$upstream_status" "$upstream_response_time" "$http_x_chef_version" "$http_x_ops_sign" "$http_x_ops_userid" "$http_x_ops_timestamp" "$http_x_ops_content_hash" $request_length "$http_x_remote_request_id"';

server_names_hash_bucket_size <%= @server_names_hash_bucket_size %>;

Expand Down

0 comments on commit 5c44856

Please sign in to comment.