#chunbo 2017-03-16 增加了负载均衡器后端ip地址
   log_format  main '$host|$server_addr|$remote_addr|$request_time|-|$remote_user|$msec|[$time_local]|$request_method|$request_uri'
               '|$status|$body_bytes_sent|$http_referer'
               '|"$http_user_agent"|$http_x_forwarded_for|$upstream_addr|-|-|-|-|-|$request_body|-|-|-|-|';



   #chunbo 2017-03-01
   log_format  main '$host|$server_addr|$remote_addr|$request_time|-|$remote_user|$msec|[$time_local]|$request_method|$request_uri'
               '|$status|$body_bytes_sent|$http_referer'
               '|"$http_user_agent"|$http_x_forwarded_for|-|-|-|-|-|-|$request_body|-|-|-|-|';




   #刘培洋版负载均衡器日志格式         
   log_format  proxy  '$remote_addr $upstream_addr $upstream_status [$time_local] "$request" '
            '$status $body_bytes_sent "$http_referer" '
            ' $http_x_forwarded_for $host $upstream_response_time';
文档更新时间: 2019-07-13 11:58   作者:月影鹏鹏