apache日志处理分析合集
统计访问量最多的前N个IP,倒序排列
cat 日志文件 | awk '{print $1}'|sort|uniq -c|sort -r -n -k1|head -数量
统计访问量最多的50个IP,倒序排列,并且排除包含”bot”和”spider”的记录
cat access_20100921.log |egrep -v "bot|spider"| awk '{print $1}'|sort|uniq -c|sort -r -n -k1|head -50
转载请注明来源: codante – apache日志处理分析合集
本文链接地址: http://codante.org/apache-log-processing-of-collection
上一篇:
Nginx安装及配置
下一篇:
磁盘阵列 – RAID详解
最新评论