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

Revert "chore: standardize Nginx Log Format for Datadog Integration" #72

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Changes from all commits
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
7 changes: 3 additions & 4 deletions playbooks/roles/nginx/templates/etc/nginx/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@ http {
'upstream_connect_time=$upstream_connect_time upstream_header_time=$upstream_header_time';

{% if NGINX_ENABLE_REQUEST_TRACKING_ID -%}
log_format cf_custom '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent $request_time "$http_referer" "$http_user_agent" '
'$http_x_forwarded_for $http_x_forwarded_proto $request_tracking_id';

log_format cf_custom '$http_x_forwarded_for - $remote_addr - $remote_user $http_x_forwarded_proto [$time_local] $request_tracking_id '
'"$request" $status $body_bytes_sent $request_time '
'"$http_referer" "$http_user_agent"';
{% endif %}

log_format json_analytics escape=json '{'
Expand Down
Loading