./configure --prefix=/usr/local/nginx --with_http_sub_module --with_http_ssl_module
yum install pcre pcre-devel openssl openssl-devel zlib zlib-devel -y
nginx_json_log
log_format access_json '{"@timestamp":"$time_iso8601",' '"host":"$server_addr",' '"clientip":"$remote_addr",' '"size":$body_bytes_sent,' '"responsetime":$request_time,' '"upstreamtime":"$upstream_response_time",' '"upstreamhost":"$upstream_addr",' '"http_host":"$host",' '"url":"$uri",' '"domain":"$host",' '"xff":"$http_x_forwarded_for",' '"referer":"$http_referer",' '"status":"$status"}';
access_log /var/log/nginx/access.log access_json;