作者:JUN-围脖 | 来源:互联网 | 2023-10-12 11:15
1. 获取ip awk ‘{print $1}’ /data/logs/access.log
2.得到独立ip数 awk ‘{print $1}’ /data/logs/access.log | sort | uniq | wc -l
3. 获取访问时间 grep -P ‘\[.*?]\’ -o /data/logs/access.log
4. 获取访问链接 grep -P ‘(GET|POST).*?HTTP’ -o /data/logs/mlzup.access.log
5. 获取reponse code grep -P ‘HTTP/.*?\” (.*?) ‘ -o /data/app/logs/mlzup.access.log