awk统计nginx日志访问前一百的ip

访问ip  awk '{print $1}' access.log| sort | uniq -c | sort -n -k 1 -r | head -n 100

访问地址 awk '{print $7}' access.log| sort | uniq -c | sort -n -k 1 -r | head -n 100

posted on 2015-10-16 09:15  liuwenbohhh  阅读(836)  评论(0编辑  收藏  举报