用户工具

站点工具


日志分析

awk -F: '{count[$2”:“$3]++} END {for (minute in count) print minute, count[minute]}'

  log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                    '$status $body_bytes_sent "$http_referer" '
                    '"$http_user_agent" "$http_x_forward_for" $request_time '
                    '"$host" "$upstream_addr" "$upstream_status" "$upstream_response_time"';

1 nginx并发 2 vip重启

日志分析.txt · 最后更改: 2015/08/31 13:04 由 justzx