http {
log_format log_json escape=json '{"@timestamp": "$time_local","user_ip":"$http_x_real_ip","remote_addr":"$remote_addr","log_time":"$time_iso8601","user_req":"$request","request_body":"$request_body","http_code":"$status","body_bytes_sents":"$body_bytes_sent","req_time":"$request_time","user_ua":"$http_user_agent"}';
client_max_body_size 10M;
}
access_log /var/log/nginx/im.log log_json;