去年搭了一个技术博客,很简单的用 OpenResty(nginx) + 静态博客(zola) 就跑了起来,主要是想慢慢整理和输出自己学习的过程,一直没想到过访问数据。昨天晚上突然发现 nginx 的访问数据居然一直存着,我就咨询了下 ai ,拿着 goaccess 工具,整理了一下访问数据。
命令行是 goaccess /usr/local/openresty/nginx/logs/access.log --log-format=COMBINED --ignore-crawlers
,我不太熟悉这个,只是去掉了爬虫相关,估计正常的 RSS 订阅应该还算在里面,数据结果贴在最下面。可能写的技术方向比较小众,就是网络编程之类的,看得人不是很多,这个倒是符合预期,主要游览量还是在我之前写的那个故障应急总结上面。
大家还有什么不怎么折腾,还能给自己博客访问数据做一些有意思分析的办法吗,感觉 Google Analytics 这种有点太重了,我只是个静态博客。哦,对了,最后放下博客地址 https://jt26wzz.com/ 😉
Dashboard - Overall Analyzed Requests (10/Dec/2024 - 29/Jul/2025) [Active Panel: Visitors]
Total Requests 880775 Unique Visitors 106930 Requested Files 14131 Referrers 0
Valid Requests 761559 Log Parsing Time 20s Static Files 1018 Log Size 205.29 MiB
Failed Requests 0 Excl. IP Hits 0 Not Found 11286 Tx. Amount 50.01 GiB
Log Source /usr/local/openresty/nginx/logs/access.log
> 1 - Unique visitors per day Total: 232/232
Hits h% Vis. v% Tx. Amount Data
---- ------ ---- ------ ---------- ----
815 0.11% 153 0.14% 13.69 MiB 29/Jul/2025 |||||||||||||||||||||||||||
1844 0.24% 401 0.38% 60.99 MiB 28/Jul/2025 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2310 0.30% 400 0.37% 45.88 MiB 27/Jul/2025 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2213 0.29% 748 0.70% 63.10 MiB 26/Jul/2025 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1998 0.26% 387 0.36% 79.20 MiB 25/Jul/2025 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2748 0.36% 538 0.50% 127.93 MiB 24/Jul/2025 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3269 0.43% 676 0.63% 161.26 MiB 23/Jul/2025 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2 - Requested Files (URLs) Total: 366/14131
Hits h% Vis. v% Tx. Amount Mtd Proto Data
----- ------ ----- ------ ---------- --- -------- ----
64645 8.49% 34767 32.51% 288.57 MiB GET HTTP/1.1 /
46977 6.17% 35299 33.01% 1.73 GiB GET HTTP/1.1 /posts/0007-online-firefighting-real-world-lessions-from-4-years-on-call/
15021 1.97% 3974 3.72% 17.98 MiB GET HTTP/1.1 /rss.xml
8111 1.07% 4061 3.80% 293.31 MiB GET HTTP/3 /posts/0007-online-firefighting-real-world-lessions-from-4-years-on-call/
3564 0.47% 3446 3.22% 12.77 MiB GET HTTP/1.1 /about/