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:
William Carroll 2020-08-14 11:40:44 +01:00
parent 979cbda33c
commit 309c5452e1

View file

@ -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,'