日志的格式如下:
192.168.1.116 - - [11/Aug/2011:19:20:47 +0800] "POST /test?version=1111111111111111&test=22222&yyyyyyyyy=ddddd HTTP/1.1" 200 4 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT)" "-" "3.002" "3.004"
统计脚本如下:
cat wx-access_2011-08-11.log |grep POST|awk '{print $(NF-1) $NF}'|awk -F'"' '{if ($2>3||$4>3) print $0}'
输出结果:
"3.002""3.004"
阅读(1991) | 评论(0) | 转发(0) |