Skip to content

Commit 6a5b263

Browse files
authored
Update Nginx log format to v2
Need to bump to `v2` because another mistake was make in the existing deployment for `v1` causing conflicts with this definition, and we also need to correct ports to be integers instead of strings.
1 parent e0dc06d commit 6a5b263

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/lib/config/nginx.conf

Lines changed: 3 additions & 3 deletions
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":{"v1":{'
20+
log_format main escape=json '@cee:{"nginx":{"v2":{'
2121
'"body_bytes_sent": $body_bytes_sent, '
2222
'"bytes_sent": $bytes_sent, '
2323
'"connection": $connection, '
@@ -31,7 +31,7 @@ http {
3131
'"pipe": "$pipe", '
3232
'"remote": {'
3333
'"addr": "$remote_addr", '
34-
'"port": "$remote_port", '
34+
'"port": $remote_port, '
3535
'"user": "$remote_user"'
3636
'}, '
3737
'"request": {'
@@ -45,7 +45,7 @@ http {
4545
'"server": {'
4646
'"name": "$server_name", '
4747
'"host": "$host", '
48-
'"port": "$server_port"'
48+
'"port": $server_port'
4949
'}, '
5050
'"status": $status, '
5151
'"time": "$time_iso8601", '

0 commit comments

Comments
 (0)