File: /www/server/site_total/scripts/site_log_format.conf
log_format site_total escape=json '{'
'"server_addr": "$server_addr",'
'"server_port": $server_port,'
'"host":"$http_host",'
'"x_forwarded_for":"$http_x_forwarded_for",'
'"x_real_ip":"$http_x_real_ip",'
'"x_forwarded":"$http_x_forwarded",'
'"forwarded_for":"$http_forwarded_for",'
'"forwarded":"$http_forwarded",'
'"true_client_ip":"$http_true_client_ip",'
'"client_ip":"$http_client_ip",'
'"ali_cdn_real_ip":"$http_ali_cdn_real_ip",'
'"cdn_src_ip":"$http_cdn_src_ip",'
'"cdn_real_ip":"$http_cdn_real_ip",'
'"cf_connecting_ip":"$http_cf_connecting_ip",'
'"x_cluster_client_ip":"$http_x_cluster_client_ip",'
'"wl_proxy_client_ip":"$http_wl_proxy_client_ip",'
'"proxy_client_ip":"$http_proxy_client_ip",'
'"remote_addr":"$remote_addr",'
'"remote_port":$remote_port,'
'"remote_user":"$remote_user",'
'"https":"$https",'
'"req_length":$request_length,'
'"method":"$request_method",'
'"uri":"$request_uri",'
'"request_filename":"$request_filename",'
'"status":$status,'
'"sent_bytes":$bytes_sent,'
'"body_bytes_sent":$body_bytes_sent,'
'"content_type":"$sent_http_content_type",'
'"content_encoding":"$sent_http_content_encoding",'
'"referer":"$http_referer",'
'"user_agent":"$http_user_agent",'
'"upstream_addr":"$upstream_addr",'
'"upstream_status":$upstream_status,'
'"upstream_response_time":$upstream_response_time,'
'"take_time":$request_time,'
'"msec":$msec,'
'"cookie":"$http_cookie",'
'"accept":"$http_accept",'
'"accept_language":"$http_accept_language",'
'"accept_encoding":"$http_accept_encoding"'
'}';