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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What do you use to view logs?

12 点作者 iimpact大约 3 年前
Looking for solutions out there, or recommendations for macOS. Specifically, static log files (structured JSON) that is easy to filter and has color coding (log levels).<p>What I am finding is that there are mainly &quot;tail&quot; type log viewers via the terminal, or cloud based. I&#x27;m looking for something local I can install.

6 条评论

cpach大约 3 年前
I guess many people use Graylog, Splunk or similar web-based systems (which can be self-hosted if you like) and are content with that. Not sure if there are any readymade applications for using locally on your Mac.<p>Maybe you can hack something together with jq + Bash + awk etc?<p>These tools might also be useful:<p><a href="https:&#x2F;&#x2F;kantord.github.io&#x2F;emuto&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kantord.github.io&#x2F;emuto&#x2F;</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;antonmedv&#x2F;fx" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;antonmedv&#x2F;fx</a><p>Best of luck!
评论 #30952813 未加载
tstack大约 3 年前
The Logfile Navigator (<a href="https:&#x2F;&#x2F;lnav.org" rel="nofollow">https:&#x2F;&#x2F;lnav.org</a>) is a TUI for viewing log files that can be configured to process structured JSON files. It has quite a few features, like filtering and color coding.<p>The documentation for writing a format file is here -- <a href="https:&#x2F;&#x2F;docs.lnav.org&#x2F;en&#x2F;latest&#x2F;formats.html" rel="nofollow">https:&#x2F;&#x2F;docs.lnav.org&#x2F;en&#x2F;latest&#x2F;formats.html</a><p>The format file tells lnav what common fields are in the log messages and how to format them into plaintext for display. Here&#x27;s an example configuration for JSON logs -- <a href="https:&#x2F;&#x2F;github.com&#x2F;tstack&#x2F;fullsail_lnav_config&#x2F;blob&#x2F;master&#x2F;fullsail_log.json" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tstack&#x2F;fullsail_lnav_config&#x2F;blob&#x2F;master&#x2F;f...</a>
throwawayninja大约 3 年前
Lame but powerful option: `tail -f &#x2F;logfile.log | grep -A10 -B10 &lt;interesting thing&gt;`. (prints 10 lines before &amp; after search lines). The most powerful feature I&#x27;ve had in log management is the ability to search for what was interesting, and no tool can provide you a &quot;this is interesting&quot; button. If you&#x27;ve got performance concerns ripgrep is a drop-in grep replacement that&#x27;s very fast.
runjake大约 3 年前
Graylog. It’s surprisingly quick and easy to get going. Here’s a good starter video.<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=rtfj6W5X0YA" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=rtfj6W5X0YA</a>
skinnymuch大约 3 年前
Is <a href="http:&#x2F;&#x2F;www.logtailapp.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.logtailapp.com&#x2F;</a> too simple or would it work?
评论 #30960717 未加载
toomuchtodo大约 3 年前
Graylog for centralized logging, jless locally.
评论 #30952820 未加载