update nginx logformat

This commit is contained in:
Ingolf Wagner 2024-06-21 15:45:56 +02:00
parent c270af454e
commit d0ca797270
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -51,13 +51,18 @@ with lib;
log_format json_combined escape=json
'{'
'"time_local":"$time_local",'
'"remote_addr":"$remote_addr",'
'"remote_user":"$remote_user",'
'"request":"$request",'
'"status": "$status",'
'"timestamp":"$time_iso8601",'
'"facility":"nginx",'
'"src_addr":"$remote_addr",'
'"body_bytes_sent":"$body_bytes_sent",'
'"request_time":"$request_time",'
'"response_status":"$status",'
'"request_method":"$request_method",'
'"request":"$request",'
'"host":"$host",'
'"upstream_cache_status":"$upstream_cache_status",'
'"upstream_addr":"$upstream_addr",'
'"http_x_forwarded_for":"$http_x_forwarded_for",'
'"http_referrer":"$http_referer",'
'"http_user_agent":"$http_user_agent"'
'}';