From 114d32109255d3459046843e2e2bdd94d77be7e9 Mon Sep 17 00:00:00 2001 From: Peter Portante Date: Wed, 29 Mar 2023 11:39:40 -0400 Subject: [PATCH] Update nginx JSON to add missing `type` and `host` fields --- server/lib/config/nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/lib/config/nginx.conf b/server/lib/config/nginx.conf index ed50259903..61c6054291 100644 --- a/server/lib/config/nginx.conf +++ b/server/lib/config/nginx.conf @@ -17,7 +17,7 @@ events { } http { - log_format main escape=json '@cee:{"nginx":{"v0":{' + log_format main escape=json '@cee:{"nginx":{"v1":{' '"body_bytes_sent": $body_bytes_sent, ' '"bytes_sent": $bytes_sent, ' '"connection": $connection, ' @@ -44,10 +44,12 @@ http { '}, ' '"server": {' '"name": "$server_name", ' + '"host": "$host", ' '"port": "$server_port"' '}, ' '"status": $status, ' '"time": "$time_iso8601", ' + '"type": "HTTP", ' '"upstream": {' '"connect_time": "$upstream_connect_time", ' '"header_time": "$upstream_header_time", '