文章列表
可以使用apache的日志格式:
common:'%h %l %u %t "%r" %s %b'
combined:'%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"'
也可以自己定制:
请看http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html#Access%20Log%20Valve
egrep比grep更好的支持模式匹配
egrep -c "\.jsp|\.do" access_log.2010-01-14.log
egrep -n -i "\.jsp|\.do" access_log.2010-01-14.log
egrep -v -i "\.jsp|\.do" access_log.2010-01-14.log