统计nginx access.log文件中对ip地址去重并统计重复数
access.log
awk '{h[$1]++}END{for(i in h) print i,h[i]}' /var/log/nginx/access.log |sort -nrk2 |head | column -t
统计nginx access.log文件中对ip地址去重并统计重复数
access.log
awk '{h[$1]++}END{for(i in h) print i,h[i]}' /var/log/nginx/access.log |sort -nrk2 |head | column -t