Ask HN: What do you use to view logs?
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).
What I am finding is that there are mainly "tail" type log viewers via the terminal, or cloud based. I'm looking for something local I can install.
10 comments
[ 2.5 ms ] story [ 46.0 ms ] threadMaybe you can hack something together with jq + Bash + awk etc?
These tools might also be useful:
https://kantord.github.io/emuto/
https://github.com/antonmedv/fx
Best of luck!
https://www.youtube.com/watch?v=rtfj6W5X0YA
I like it. I assume there isn’t an alternative so I’m forgiving of any friction or limitation as it has enough of the basics to do most things. The main thing id like is better UX with filtering/highlighting things. It does support those things though
The documentation for writing a format file is here -- https://docs.lnav.org/en/latest/formats.html
The format file tells lnav what common fields are in the log messages and how to format them into plaintext for display. Here's an example configuration for JSON logs -- https://github.com/tstack/fullsail_lnav_config/blob/master/f...