Skip to content

Commit 245184f

Browse files
authored
Merge pull request #8 from Intellection/update_and_fix_logged_information
Update and fix information logged in the JSON format
2 parents 2c9b4cb + 8fbeba3 commit 245184f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.19.5-5
4+
5+
* Add `http_x_amzn_trace_id` to json logging (for `X-Amzn-Trace-Id` header).
6+
* Add `http_connection` to json logging (for `Connection` header).
7+
* Fix "incorrect" spelling of header.
8+
39
## 1.19.5-4
410

511
* Renamed `main` logging format to `main_default`.

config/log.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ log_format main_json escape=json
77
'{'
88
'"body_bytes_sent":"$body_bytes_sent",'
99
'"host":"$host",'
10-
'"http_referrer":"$http_referer",'
10+
'"http_connection":"$http_connection",'
11+
'"http_referer":"$http_referer",'
1112
'"http_user_agent":"$http_user_agent",'
13+
'"http_x_amzn_trace_id":"$http_x_amzn_trace_id",'
1214
'"http_x_forwarded_for":"$http_x_forwarded_for",'
1315
'"proxy_x_forwarded_port":"$proxy_x_forwarded_port",'
1416
'"proxy_x_forwarded_proto":"$proxy_x_forwarded_proto",'

0 commit comments

Comments
 (0)