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
|
||||
'{'
|
||||
'"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"'
|
||||
'}';
|
||||
|
|
Loading…
Reference in a new issue