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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What is a simple tool for parsing and analyzing log files?

6 点作者 thojest超过 5 年前
Hi there, I have a small app (frontend, backend, database) with &lt;100 users. I would like to use my log files to analyze basic metrics, like for example - number of requests - number of comments created - number of shared links per unit of time.<p>All of this runs on one single server, no big infrastructure, no big data. I am unable to find a SIMPLE tool to collect my logs in some way, parse them, and visualize them in histograms for example.<p>I know there exist ELK stack, Splunk, Graylog and many others, but all these solutions are much too complex. Especially I do not want to spend weeks setting this up correctly. Further more, most of these solutions need an extra server for aggregating the logdata in some timeseries db.<p>I would be very happy if you know about any opensource tool which can do this job.

6 条评论

baccredited超过 5 年前
I&#x27;ve had luck with <a href="https:&#x2F;&#x2F;goaccess.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;goaccess.io&#x2F;</a><p>example: goaccess logfile.log -o report.html --log-format=COMBINED
评论 #21595970 未加载
评论 #21604532 未加载
tekronis超过 5 年前
Maybe checkout LNAV: <a href="http:&#x2F;&#x2F;lnav.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;lnav.org&#x2F;</a><p>There&#x27;s also angle-grinder, which has less features, but also pretty useful: <a href="https:&#x2F;&#x2F;github.com&#x2F;rcoh&#x2F;angle-grinder" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rcoh&#x2F;angle-grinder</a>
gmuslera超过 5 年前
Grafana´s Loki may have a lighter weight than the other examples you gave above.<p>For some kinds of logs there are tools for summarization and reports (like awstats for web or pflogsumm for mail servers).<p>And, of course, for particular queries on existing logs the standard text tools in a linux box let you generate a lot of info.
评论 #21594543 未加载
runjake超过 5 年前
For web logs, I still use Webalizer. For everything else, as long as we are not talking tens of gigs, I’ll be using some mix of Perl, Python, Shell, Awk, etc.
kjs3超过 5 年前
Syslog + something to massage the data (sh&#x2F;awk&#x2F;sed, perl, python)? Like we&#x27;ve been doing for simple apps for decades?
评论 #21593529 未加载
PaulHoule超过 5 年前
pandas?