более интересный вариант?
log_format graylog2_json escape=json '{ "host": "$host", "remote_addr": "$remote_addr", "ssl_protocol": "$ssl_protocol", "ssl_cipher": "$ssl_cipher", "body_bytes_sent": "$body_bytes_sent", "status": "$status", "request": "$request", "request_uri": "$request_uri", "request_method": "$request_method", "request_scheme": "$scheme", "server_protocol": "$server_protocol", "http_referer": "$http_referer", "http_version": "$http_version", "http_user_agent": "$http_user_agent", "request_time": "$request_time", "upstream_cache_status": "$upstream_cache_status", "upstream_addr": "$upstream_addr"}';
Обсуждают сегодня