分析httpd的access_log
1.获取访问前10位的ip地址
[root@hezhihao logs]# awk '{a[$1] +=1;} END{for(i in a) printf("%d %s\n",a[i],i);}' /etc/httpd/logs/access_log | sort -n |tail
分析httpd的access_log
1.获取访问前10位的ip地址
[root@hezhihao logs]# awk '{a[$1] +=1;} END{for(i in a) printf("%d %s\n",a[i],i);}' /etc/httpd/logs/access_log | sort -n |tail