TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What do you use to view logs?

12 pointsby iimpactabout 3 years ago
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 comments

cpachabout 3 years ago
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 未加载
tstackabout 3 years ago
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>
throwawayninjaabout 3 years ago
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.
runjakeabout 3 years ago
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>
skinnymuchabout 3 years ago
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 未加载
toomuchtodoabout 3 years ago
Graylog for centralized logging, jless locally.
评论 #30952820 未加载