摘要: 统计PV,UV数 统计所有的PV数 cat access.log | wc -l 复制 统计当天的PV数 cat access.log | sed -n /`date "+%d\/%b\/%Y"`/p | wc -l 复制 统计指定某一天的PV数 cat access.log | sed -n '/ 阅读全文
posted @ 2024-03-26 21:33 GaoYanbing 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 一、背景 近来打算对后端接口进行优化,所以要先对现有接口的情况进行统计。因为相关业务接口是index.php?action=XXX的形式,所以公司运维的管理平台并不能满足需求,所以要自行处理nginx日志获取接口的情况了。 二、处理思路 1.nginx日志中不止包含相关接口的日志,所以先要根据关键字 阅读全文
posted @ 2024-03-26 21:21 GaoYanbing 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 来源:https://cloud.tencent.com/developer/article/1449085 参考:https://www.yolo813.com/articles/31 参考:https://developer.aliyun.com/article/695263 GoAccess 阅读全文
posted @ 2024-03-26 19:42 GaoYanbing 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 举例: a. 搜索domainname为search.s.d.pa.com的 domainname:search.s.d.pa.com 写法或者 domainname:"search.s.d.pa.com" b.搜索状态为400的 或者200的 status:404 c.范围值有 status:[4 阅读全文
posted @ 2024-03-26 18:33 GaoYanbing 阅读(5) 评论(0) 推荐(0) 编辑