Skip to content
Snippets Groups Projects

nginx: remove a few fields from json_reduced

Merged Evangelos Foutras requested to merge trim-json_reduced-log-format into master
1 file
+ 0
4
Compare changes
  • Side-by-side
  • Inline
@@ -50,9 +50,7 @@ http {
log_format json_reduced escape=json
'{'
'"remote_addr":"$remote_addr",'
'"host":"$host",'
'"remote_user":"$remote_user",'
'"time_local":"$time_local",'
'"request_method":"$request_method",'
'"request_uri":"$request_uri",'
@@ -60,8 +58,6 @@ http {
'"body_bytes_sent":"$body_bytes_sent",'
'"http_referrer":"$http_referer",'
'"http_user_agent":"$http_user_agent",'
'"http_x_forwarded_for":"$http_x_forwarded_for",'
'"request_time":"$request_time",'
# This was added to keep every log line unique as Loki drops
# log line with the same timestamp and log text:
# https://grafana.com/docs/loki/latest/overview/#timestamp-ordering
Loading