在apache访问日志中统计统计前十名pv
原创juhaodejiaoya ©著作权
©著作权归作者所有:来自51CTO博客作者juhaodejiaoya的原创作品,请联系作者获取转载授权,否则将追究法律责任
通过访问日志,统计前十名的pv值
cat /var/log/httpd/access_log |grep html|sed 's/^.*GET//g'|sed 's/HTTP.*$//g'|sort|uniq -c|sort -nr|sed -n '1,10p'
cat /var/log/httpd/access_log|awk -F \" '{print $2}' | awk '{print $2}' | grep 'html$' | sort | uniq -c | sort -nr | head -n 10
awk ' {print $7} ' /var/log/httpd/access_log |grep html| sort | uniq -c | sort -nr | head -n 10
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
排名前十名的WAP网站
com
3G 3g .net