ВМ
Size: a a a
ВМ
ВМ
ВМ
ВМ
AB
nginx: [emerg] named location "@blacklist" can be on the server level only in /etc/nginx/vhosts-includes/blacklist-nginx.conf:1
YS
AU
AN
AU
SA
AU
access_log /var/log/nginx/1234_access_json.log json;
access_log /var/log/nginx/1234_access_json_analytics.log json_analytics;
AU
log_format json escape=json
'{'
'"status":"$status",'
'"ip":"$remote_addr",'
'"user_agent":"$http_user_agent",'
'"request":"$request",'
'"request_body":"$request_body",'
'"request_time":"$request_time",'
'"upstream_response_time":"$upstream_response_time"'
'}';
log_format json_analytics escape=json '{'
'"msec": "$msec", ' # request unixtime in seconds with a milliseconds resolution
'"connection": "$connection", ' # connection serial number
'"connection_requests": "$connection_requests", ' # number of requests made in connection
'"pid": "$pid", ' # process pid
'"request_id": "$request_id", ' # the unique request id
'"request_length": "$request_length", ' # request length (including headers and body)
'"remote_addr": "$remote_addr", ' # client IP……etc
SA
AU
AU
og_format json_analytics escape=json используется