log_format json escape=json '{"time":"$time_iso8601",'
'"hostname":"$hostname",'
'"request_method":"$request_method",'
'"query_string":"$query_string",'
'"remote_addr":"$remote_addr",'
'"http_referer":"$http_referer",'
'"body_bytes_sent":$body_bytes_sent,'
'"http_user_agent":"$http_user_agent",'
'"http_x_forwarded_for":"$http_x_forwarded_for",'
'"request_body":"$request_body",'
'"request_time":$request_time,'
'"upstream_response_time":"$upstream_response_time",'
'"upstream_addr":"$upstream_addr"}';