mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-06-09 15:26:05 +02:00
Merge branch 'trim-json_reduced-log-format' into 'master'
nginx: remove a few fields from json_reduced See merge request archlinux/infrastructure!557
This commit is contained in:
commit
1dd3584778
|
@ -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…
Reference in New Issue