Add host field for nginx JSON logs
I'd like to filter logs from {blog,git,zoo}.wpcarro.dev, etc.
This commit is contained in:
parent
979cbda33c
commit
309c5452e1
1 changed files with 1 additions and 0 deletions
|
@ -170,6 +170,7 @@ in {
|
||||||
'{'
|
'{'
|
||||||
'"remote_addr":"$remote_addr",'
|
'"remote_addr":"$remote_addr",'
|
||||||
'"method":"$request_method",'
|
'"method":"$request_method",'
|
||||||
|
'"host":"$host",'
|
||||||
'"uri":"$request_uri",'
|
'"uri":"$request_uri",'
|
||||||
'"status":$status,'
|
'"status":$status,'
|
||||||
'"request_size":$request_length,'
|
'"request_size":$request_length,'
|
||||||
|
|
Loading…
Reference in a new issue