1 log_format json '{"@timestamp":"$time_iso8601",'
2 '"@version":"1",'
3 '"client":"$remote_addr",'
4 '"url":"$uri",'
5 '"status":"$status",'
6 '"domain":"$host",'
7 '"host":"$server_addr",'
8 '"size":"$body_bytes_sent",'
9 '"responsentime":"$request_time",'
10 '"referer":"$http_referer",'
11 '"useragent":"$http_user_agent"'
12 '}';
13 access_log logs/access_json.log json;