Skip to content

Commit f5260b3

Browse files
committed
fix(release): Add JSON log format configuration for improved logging
1 parent 7f2f5fd commit f5260b3

File tree

1 file changed

+9
-0
lines changed
  • infrastructure/clusters/prod/controllers/ingress-nginx

1 file changed

+9
-0
lines changed

infrastructure/clusters/prod/controllers/ingress-nginx/release.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,13 @@ spec:
3737
use-forwarded-headers: "true"
3838
forwarded-for-header: "True-Client-IP"
3939
strict-validate-path-type: "false"
40+
log-format-escape-json: "true"
41+
log-format-upstream: >
42+
{"time":"$time_iso8601","remote_addr":"$proxy_protocol_addr",
43+
"x_forwarded_for":"$proxy_add_x_forwarded_for","request_id":"$req_id",
44+
"bytes_sent":$bytes_sent,"request_time":$request_time,"status":$status,
45+
"vhost":"$host","request_proto":"$server_protocol","path":"$uri",
46+
"request_query":"$args","request_length":$request_length,
47+
"method":"$request_method","http_referrer":"$http_referer",
48+
"http_user_agent":"$http_user_agent"}
4049

0 commit comments

Comments
 (0)