http {
include mime.types;
default_type application/octet-stream;
log_format main '{"remoteaddr":"$remote_addr","hostname":"$host","clientip":"$http_x_forwarded_for","timestamp":"$time_local","theme":"$scheme","http_verb":"$request_method",'
'"http_request_url":"$document_uri","http_request_args":"$args","http_version":"$http_version","request_time":$request_time,'
'"upstream_response_time":"$upstream_response_time","upstream_response_length":"$upstream_response_length",'
'"upstream_host":"$upstream_addr","http_status":"$status","bytes_read":"$body_bytes_sent","refferrer":"$http_referer","agent":"$http_user_agent"}';
}
放在这里, http中