update nginx logformat
This commit is contained in:
parent
c270af454e
commit
d0ca797270
1 changed files with 10 additions and 5 deletions
|
@ -51,13 +51,18 @@ with lib;
|
||||||
|
|
||||||
log_format json_combined escape=json
|
log_format json_combined escape=json
|
||||||
'{'
|
'{'
|
||||||
'"time_local":"$time_local",'
|
'"timestamp":"$time_iso8601",'
|
||||||
'"remote_addr":"$remote_addr",'
|
'"facility":"nginx",'
|
||||||
'"remote_user":"$remote_user",'
|
'"src_addr":"$remote_addr",'
|
||||||
'"request":"$request",'
|
|
||||||
'"status": "$status",'
|
|
||||||
'"body_bytes_sent":"$body_bytes_sent",'
|
'"body_bytes_sent":"$body_bytes_sent",'
|
||||||
'"request_time":"$request_time",'
|
'"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_referrer":"$http_referer",'
|
||||||
'"http_user_agent":"$http_user_agent"'
|
'"http_user_agent":"$http_user_agent"'
|
||||||
'}';
|
'}';
|
||||||
|
|
Loading…
Reference in a new issue