TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ngtop – Request analytics from the Nginx access logs

120 点作者 facundo_olano10 个月前

9 条评论

xorcist10 个月前
Goaccess (<a href="https:&#x2F;&#x2F;github.com&#x2F;allinurl&#x2F;goaccess">https:&#x2F;&#x2F;github.com&#x2F;allinurl&#x2F;goaccess</a>) does this in real time and has been very stable for well over a decade.
walth10 个月前
Found it much easier to just used structured logs and slice them with [angle grinder](<a href="https:&#x2F;&#x2F;github.com&#x2F;rcoh&#x2F;angle-grinder">https:&#x2F;&#x2F;github.com&#x2F;rcoh&#x2F;angle-grinder</a>)
评论 #41117058 未加载
renewiltord10 个月前
This is cool. I just installed goaccess and was using that to look at the nginx logs but this is also neat. I like post-hoc analysis of these things rather than injecting JS just because it&#x27;s easier for me to manage for my personal sites. Thank you.
iamcreasy10 个月前
What is the simplest solution to access nginx log? Could it be setting an endpoint(behind simple user&#x2F;pass) that echos the content of the log?
评论 #41121342 未加载
评论 #41117624 未加载
Cherian10 个月前
Is there something like logwatch that could send me a digest of all 404s, 500s etc.?
vlasky10 个月前
ngxtop is also very useful for providing real-time metrics:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;lebinh&#x2F;ngxtop">https:&#x2F;&#x2F;github.com&#x2F;lebinh&#x2F;ngxtop</a>
评论 #41115882 未加载
codazoda10 个月前
This looks great. I wrote my own “counter” for my personal sites but I haven’t developed it a lot more. This probably makes more sense.
ValtteriL10 个月前
I used something similar in the past for website analytics but came to realize that javascript based tracking is more useful for my use case of understanding how people use my website.<p>JS tracking leaves out most bots as well. They were a nuisance with this method.
uldus10 个月前
It is not for production use because:<p>&quot;Whenever the program is run, it looks for the nginx access.logs, parses them and stores the data into an SQLite DB. &quot; ... &quot;The command line arguments express a filtering criteria, used to build the SQL query that counts the requests.&quot;
评论 #41118429 未加载