Authored by Your Name

修改ufo logformat

# inventory file for az2
# auto generated at 2018-11-19 10:42:51
# auto generated at 2018-12-05 14:46:13
[nameservers]
10.66.105.5
... ... @@ -17,6 +17,9 @@
10.66.105.35
10.66.105.32
[ufo-nginx]
10.66.104.18
[java-activity]
10.66.104.17
... ...
... ... @@ -25,7 +25,8 @@ http {
log_format fenxi '$remote_addr|$http_x_forwarded_for|[$time_local]|$http_host|$request|'
'$status|$body_bytes_sent|$request_time|$upstream_response_time|$upstream_cache_status|$http_referer|'
'$http_user_agent|$upstream_addr';
'$http_user_agent|$upstream_addr|'
'$real_ip|$request_api_method|$request_uid|$request_udid';
# limit req configuration limit for 20r/s for every ip
... ...
... ... @@ -14,7 +14,10 @@ server {
error_log /Data/logs/nginx/ufo_error.log;
set $real_ip "";
set $real_ip "-";
set $request_api_method "-";
set $request_udid "-";
set $request_uid "-";
# set_by_lua_file $real_ip conf/setup.lua;
# access_by_lua_file 'conf/lua/limit_api_flow.lua';
... ...