Top
Best
New

Posted by wiradikusuma 1 day ago

Log File Viewer for the Terminal(lnav.org)
293 points | 47 commentspage 2
asmosoinio 23 hours ago|
Looks very useful, will give it a go.

This resonates with my use of grep+less: https://github.com/tstack/lnav?tab=readme-ov-file#why-not-ju...

brunosutic 22 hours ago||
I tried lnav about 7-8 years ago and as a terminal junkie I really liked the features.

The only breaking thing was a huge (almost bloated) memory consumption. At that time lnav basically just kept everything in memory. Does anyone did that change?

xx_ns 22 hours ago||
According to the linked homepage, the memory usage seems decent (few hundred megs for most use cases when working with a 3.3G logfile). There's a screenshot with various tasks and what the peak memory usage is.

At some point you need to keep quite a large context in memory to have both decent performance and useful features (that aren't unbearably slow to use). lnav seems to land at a reasonable middle ground.

tstack 15 hours ago||
> At that time lnav basically just kept everything in memory.

lnav has never really kept the contents of files in memory. It does build an index of every line in a file. One exception is that it will decompress small gzip files and keep them in memory as a tradeoff from decompressing on the fly.

The memory consumption has never been a problem for me. So, it's not something I've ever focused on.

NoSalt 11 hours ago||
Just out of curiosity, is there a log file viewer that ISN'T for the terminal?
bdangubic 11 hours ago|
every editor ever :)
__bax 21 hours ago||
Must have tool!
SoftTalker 15 hours ago||
I've always just used less(1).
tstack 15 hours ago|
Yep, I would say the stiffest competition for lnav is the old tools[1]. I would just hope folks could have an open mind and give "new" things a chance (although lnav has been on github for 17 years).

[1] - https://lnav.org/2013/09/10/competing-with-tail.html

steveharing1 22 hours ago||
I was looking for something like this, Appreciate it!
vincentabolarin 20 hours ago||
This looks genuinely useful.
secureblueprint 13 hours ago||
This is very helpful
yagelar 20 hours ago||
very nice, definitely will use it
worksonmine 19 hours ago|
It's a nice tool but I really wish the configuration wasn't done in json and loaded from $XDG_CONFIG_HOME.
More comments...