SHELL分析过滤IIS日志 不指定

root , 2007/09/22 15:04 , SHELL , 评论(0) , 阅读(5731) , Via 本站原创 | |
引用

获取index.asp一天中出现的个数排序:
more ex080305.log |awk '{ printf "%s %s %s",$1,$2,$6"\r\n"}'|grep index.asp|uniq -c|sort -r|head -1000 > outInfo.txt


引用

如果按秒来算可以这样:
more ex080305.log |awk '{ printf "%s %s %s",$1,substr($2,0,5),$6"\r\n"}'|grep index.asp|uniq -c >out.txt
Tags:
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]