查看某个字段访问日志
grep -P 'shell' access.log
查看某个字段总请求数
grep -P 'shell' access.log | wc -l
PV统计
可统计单个链接地址访问量:
grep index.shtml host.access.log | wc -l
总PV量:
awk '{print $6}' host.access.log | wc -l
独立IP
awk '{print $1}' host.access.log | sort -r |uniq -c | wc -l
UV统计
awk '{print $10}' host.access.log | sort -r |uniq -c |wc -l