From 55cc4b6f5bd1dd706678f88eb65eb18db078bd40 Mon Sep 17 00:00:00 2001 From: King'ori Maina Date: Fri, 19 Feb 2021 17:35:48 +0300 Subject: [PATCH 1/4] Add http_connection to json logging (for Connection header) --- config/log.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/config/log.conf b/config/log.conf index 385f33d..b117c0b 100644 --- a/config/log.conf +++ b/config/log.conf @@ -7,6 +7,7 @@ log_format main_json escape=json '{' '"body_bytes_sent":"$body_bytes_sent",' '"host":"$host",' + '"http_connection":"$http_connection",' '"http_referrer":"$http_referer",' '"http_user_agent":"$http_user_agent",' '"http_x_forwarded_for":"$http_x_forwarded_for",' From 33c4dfe79ff856befd420725ebe26f979da39d99 Mon Sep 17 00:00:00 2001 From: King'ori Maina Date: Fri, 19 Feb 2021 17:38:57 +0300 Subject: [PATCH 2/4] =?UTF-8?q?Fix=20"incorrect"=20spelling=20of=20header?= =?UTF-8?q?=20=F0=9F=99=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://en.wikipedia.org/wiki/HTTP_referer --- config/log.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/log.conf b/config/log.conf index b117c0b..21d2298 100644 --- a/config/log.conf +++ b/config/log.conf @@ -8,7 +8,7 @@ log_format main_json escape=json '"body_bytes_sent":"$body_bytes_sent",' '"host":"$host",' '"http_connection":"$http_connection",' - '"http_referrer":"$http_referer",' + '"http_referer":"$http_referer",' '"http_user_agent":"$http_user_agent",' '"http_x_forwarded_for":"$http_x_forwarded_for",' '"proxy_x_forwarded_port":"$proxy_x_forwarded_port",' From a527e26680dfb573a9f0b360854c673d5b344d2f Mon Sep 17 00:00:00 2001 From: King'ori Maina Date: Fri, 19 Feb 2021 17:39:19 +0300 Subject: [PATCH 3/4] Bump version and update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88c1349..e3968dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.19.5-5 + +* Add `http_connection` to json logging (for `Connection` header). +* Fix "incorrect" spelling of header. + ## 1.19.5-4 * Renamed `main` logging format to `main_default`. From 8fbeba3eaa00c157006319bbcb5a850c3933d7fc Mon Sep 17 00:00:00 2001 From: King'ori Maina Date: Tue, 23 Feb 2021 00:59:06 +0300 Subject: [PATCH 4/4] Add http_x_amzn_trace_id to json logging (for X-Amzn-Trace-Id header) https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-request-tracing.html --- CHANGELOG.md | 1 + config/log.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e3968dd..6f46395 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 1.19.5-5 +* Add `http_x_amzn_trace_id` to json logging (for `X-Amzn-Trace-Id` header). * Add `http_connection` to json logging (for `Connection` header). * Fix "incorrect" spelling of header. diff --git a/config/log.conf b/config/log.conf index 21d2298..0cb90b8 100644 --- a/config/log.conf +++ b/config/log.conf @@ -10,6 +10,7 @@ log_format main_json escape=json '"http_connection":"$http_connection",' '"http_referer":"$http_referer",' '"http_user_agent":"$http_user_agent",' + '"http_x_amzn_trace_id":"$http_x_amzn_trace_id",' '"http_x_forwarded_for":"$http_x_forwarded_for",' '"proxy_x_forwarded_port":"$proxy_x_forwarded_port",' '"proxy_x_forwarded_proto":"$proxy_x_forwarded_proto",'