Skip to content

Commit 114d321

Browse files
committed
Update nginx JSON to add missing type and host fields
1 parent 8932900 commit 114d321

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/lib/config/nginx.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ events {
1717
}
1818

1919
http {
20-
log_format main escape=json '@cee:{"nginx":{"v0":{'
20+
log_format main escape=json '@cee:{"nginx":{"v1":{'
2121
'"body_bytes_sent": $body_bytes_sent, '
2222
'"bytes_sent": $bytes_sent, '
2323
'"connection": $connection, '
@@ -44,10 +44,12 @@ http {
4444
'}, '
4545
'"server": {'
4646
'"name": "$server_name", '
47+
'"host": "$host", '
4748
'"port": "$server_port"'
4849
'}, '
4950
'"status": $status, '
5051
'"time": "$time_iso8601", '
52+
'"type": "HTTP", '
5153
'"upstream": {'
5254
'"connect_time": "$upstream_connect_time", '
5355
'"header_time": "$upstream_header_time", '

0 commit comments

Comments
 (0)