d960124 发表于 2025-11-21 13:52:09

【已解答】网站流量统计中,能否过滤掉127.0.0.1类似的本...

你好,我们有一些网站,对外提供服务,也对内被任务调用访问(本地host文件中,对域名强制解析到了127.0.0.1)
nginx日志中会有很多127.0.0.1的访问日志,在进行流量统计的时候,这一些访问也会统计进来,能否在后续升级中,过滤这一部分流量,更能真实反应网站流量数据,谢谢!


d960124 发表于 2025-11-21 13:52:47



127.0.0.1 - - "GET /api/baidu/plan HTTP/1.1" 200 18 "-" "curl/7.88.1"127.0.0.1 - - "GET /task/ocebaidu/index_feed/return/string.html HTTP/1.1" 200 17 "-" "-"127.0.0.1 - - "GET /task/ocebaidu/previous/return/string.html HTTP/1.1" 200 90 "-" "-"127.0.0.1 - - "GET /task/adgroup/index/return/string.html HTTP/1.1" 200 17 "-" "-"127.0.0.1 - - "GET /task/ocebaidu/index/return/string.html HTTP/1.1" 499 0 "-" "-"127.0.0.1 - - "GET /api/brower.index/task HTTP/2.0" 200 249 "-" "curl/7.88.1"127.0.0.1 - - "GET /task/ocebaidu/jimuyu/return/string.html HTTP/1.1" 200 17 "-" "-"127.0.0.1 - - "GET /task/run/dsyx HTTP/2.0" 200 182 "-" "curl/7.88.1"127.0.0.1 - - "GET /task/ocebaidu/previous_feed/return/string.html HTTP/1.1" 200 90 "-" "-"127.0.0.1 - - "GET /task/adgroup/index/return/string.html HTTP/1.1" 200 17 "-" "-"127.0.0.1 - - "GET /task/adgroup/previous/return/string.html HTTP/1.1" 200 90 "-" "-"127.0.0.1 - - "GET /task/ocebaidu/searchkeyword/return/string.html HTTP/1.1" 200 17 "-" "-"127.0.0.1 - - "GET /task/ocebaidu/index/return/string.html HTTP/1.1" 499 0 "-" "-"127.0.0.1 - - "GET /task/ocebaidu/index_feed/return/string.html HTTP/1.1" 200 17 "-" "-"127.0.0.1 - - "GET /task/adgroup/index/return/string.html HTTP/1.1" 200 17 "-" "-"127.0.0.1 - - "GET /task/ocebaidu/previous/return/string.html HTTP/1.1" 200 90 "-" "-"127.0.0.1 - - "GET /task/ocebaidu/previous_searchkeyword/return/string.html HTTP/1.1" 200 90 "-" "-"

阿珂 发表于 2025-11-21 15:28:13

使用监控报表的,可以排除IP
页: [1]
查看完整版本: 【已解答】网站流量统计中,能否过滤掉127.0.0.1类似的本...