Skip to content

Commit

Permalink
Update nginx JSON to add missing type and host fields
Browse files Browse the repository at this point in the history
  • Loading branch information
portante committed Mar 30, 2023
1 parent 8932900 commit 114d321
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/lib/config/nginx.conf
Expand Up @@ -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, '
Expand All @@ -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", '
Expand Down

0 comments on commit 114d321

Please sign in to comment.