Live data from Hacker News

Show HN: Nerdlog – Fast, multi-host TUI log viewer with timeline histogram

github.com

41–50 of 58 posts

Re: Show HN: Nerdlog – Fast, multi-host TUI log viewer with timeline histogram

#41
post #5

Nice work! The TUI looks really sharp and I like the histogram on top. Going to play with this today. TIL awk patterns can be more than just regexes and can be combined with boolean operators. I've written a bit of awk and never realized this.

There's a ton of overlap between "powerful stuff that's easy to write in (g)awk" and "powerful stuff that's trivial to write in perl", but I find awk to be succinct without losing readability.

Re: Show HN: Nerdlog – Fast, multi-host TUI log viewer with timeline histogram

#42
post #22

Earlier quoted context omitted.

Thanks for the feedback. I'll see what I can do. But for now, do you think the workaround of having to install rsyslog is not good enough?

I think it will impact first-time users giving nerdlog a quick test/trial run, and cause them to bounce to another tool when it doesn't show them logs from journald out of the box. Users can be finicky and impatient with new tools ;-) Example: I'm running an Arch-based Linux desktop. Installing ryslog took several minutes to build and install. If I wasn't highly motivated to try out nerdlog, I would have canceled the…

Fyi I was going to create a Github issue for the journald support, but apparently someone else filed it first: https://github.com/dimonomid/nerdlog/issues/7

Just posting it in case you want to subscribe to it. Looks like it's a popular demand indeed, so I'll at least poke it and see what kind of performance we can get out of it.

Re: Show HN: Nerdlog – Fast, multi-host TUI log viewer with timeline histogram

#43

Earlier quoted context omitted.

That's good news that we have /var/log/socklog/everything/current, but I'm also trying to figure the format. Is it like this? (sourced from chatgpt) 2025-04-21 12:34:56 myhostname myservice: Something happened If so, then yeah it's totally doable to make this format supported. Re: config.yaml, yeah I thought of that, but in the long term I rather wanted it to be nerdlogrc.lua, so a Lua script which nerdlog executes o…

Sadly no. The format is (with examples): 2025-04-21T19:18:15.09577 user.notice: Apr 21 21:18:15 root: ACPI group/action undefined: jack/lineout / LINEOUT 2025-04-21T19:18:15.98845 daemon.debug: Apr 21 19:18:15 rtkit-daemon[1368]: Supervising 0 threads of 0 processes of 1 users. And yes! That is even better for configuration!

Maybe the format could be customizable per log file, too.

Re: Show HN: Nerdlog – Fast, multi-host TUI log viewer with timeline histogram

#44

Earlier quoted context omitted.

Sadly no. The format is (with examples): 2025-04-21T19:18:15.09577 user.notice: Apr 21 21:18:15 root: ACPI group/action undefined: jack/lineout / LINEOUT 2025-04-21T19:18:15.98845 daemon.debug: Apr 21 19:18:15 rtkit-daemon[1368]: Supervising 0 threads of 0 processes of 1 users. And yes! That is even better for configuration!

Maybe the format could be customizable per log file, too.

I don't think there's anything wrong with this format, it looks good. The most important thing for nerdlog is that all components of the timestamp must be at the fixed offsets from the beginning of each line. So I believe it can be implemented, I can look at it on the weekend. Feel free to create an issue on Github (I won't be able to test it for real, so would need your help with that)

Re: Show HN: Nerdlog – Fast, multi-host TUI log viewer with timeline histogram

#45
post #13

Earlier quoted context omitted.

That's true, as of today nerdlog doesn't use journalctl, and needs plain log files. There were a few reasons of that, primarily related to the sheer amount of logs that we were dealing with. As mentioned in the article, my original use case was: having a fleet of hosts, each printing pretty sizeable amount of logs, e.g. having more than 1-2GB log file on every host on a single day was pretty common. My biggest proble…

I appreciate this response, and want to say I really like your tool's UI over something like lazyjournal. But like the above commentor, I would love to see journald support as well, just because it's the default these days on the distros I use, and seems like the direction the Linux system industry has headed in.

Fyi I've done a simple benchmark today, and journalctl is indeed a lot slower than simply reading log files. In case you're interested: https://github.com/dimonomid/nerdlog/issues/7#issuecomment-2...

Re: Show HN: Nerdlog – Fast, multi-host TUI log viewer with timeline histogram

#46

Earlier quoted context omitted.

Maybe the format could be customizable per log file, too.

I don't think there's anything wrong with this format, it looks good. The most important thing for nerdlog is that all components of the timestamp must be at the fixed offsets from the beginning of each line. So I believe it can be implemented, I can look at it on the weekend. Feel free to create an issue on Github (I won't be able to test it for real, so would need your help with that)

I have a radial nerve injury, which makes it difficult to code, and I got a lot going on in my life at the moment, but hopefully I can come around it.

Re: Show HN: Nerdlog – Fast, multi-host TUI log viewer with timeline histogram

#47

Earlier quoted context omitted.

I don't think there's anything wrong with this format, it looks good. The most important thing for nerdlog is that all components of the timestamp must be at the fixed offsets from the beginning of each line. So I believe it can be implemented, I can look at it on the weekend. Feel free to create an issue on Github (I won't be able to test it for real, so would need your help with that)

I have a radial nerve injury, which makes it difficult to code, and I got a lot going on in my life at the moment, but hopefully I can come around it.

Damn I'm sorry to hear that. I'll see if I can get void linux installed somewhere to test it.

Good luck with whatever you're going through!

Re: Show HN: Nerdlog – Fast, multi-host TUI log viewer with timeline histogram

#48

Earlier quoted context omitted.

I have a radial nerve injury, which makes it difficult to code, and I got a lot going on in my life at the moment, but hopefully I can come around it.

Damn I'm sorry to hear that. I'll see if I can get void linux installed somewhere to test it. Good luck with whatever you're going through!

Thank you! :(. It is also referred to as wristdrop.

> If you sleep in a position that causes radial nerve compression, you may wake up experiencing numbness and tingling along the back of your arm, forearm, and hand. With more severe compression, you may also experience “wrist drop”. With wrist drop, your wrist becomes limp, and is unable to extend up.

This is what happened. It happened to me before 2 times, but this time it was only about 30 mins long compression so it is not THAT severe as it was the previous 2 times.

The reason I expanded on it is that just mere 30 minutes of sleeping on your arm may damage the nerves which results in radial nerve palsy. I would have never imagined it would happen to me, heck, I had no idea it was a thing. I had limp arms before from compression but that was related to only blood circulation, not nerve damage.

Radial nerve palsy is a nightmare for programmers. The first one was so severe that I lost my muscle memory, meaning I could not access some of my accounts.

Treatment is rest, selective electrical stimulation, and B1-B6-B12 combination, ideally injected IM. The faster the better. The first incident took months to recover, this one may only last 3 weeks.

Re: Show HN: Nerdlog – Fast, multi-host TUI log viewer with timeline histogram

#49

Earlier quoted context omitted.

Damn I'm sorry to hear that. I'll see if I can get void linux installed somewhere to test it. Good luck with whatever you're going through!

Thank you! :(. It is also referred to as wristdrop. > If you sleep in a position that causes radial nerve compression, you may wake up experiencing numbness and tingling along the back of your arm, forearm, and hand. With more severe compression, you may also experience “wrist drop”. With wrist drop, your wrist becomes limp, and is unable to extend up. This is what happened. It happened to me before 2 times, but this…

I only had the blood circulation issues from compression during sleeping, and also had no idea until today that the nerve damage like that is possible. I wonder how could it be prevented, if it can.

I seriously hope I won't have to deal with it, but thanks for expanding on it and the treatment.

Wish you a speedy recovery!

Re: Show HN: Nerdlog – Fast, multi-host TUI log viewer with timeline histogram

#50

Earlier quoted context omitted.

Thanks for the feedback! Yeah it would be great, and I do want to support it, especially if the demand is popular. In fact, even if you ungzip them manually, as of today nerdlog doesn't support more than 2 files in a logstream, which needs to be fixed first. Specifically about supporting gzipped logs though, the UX I'm thinking about is like this: if the requested time range goes beyond the earliest available ungzipp…

Definitely makes sense! > In fact, even if you ungzip them manually, as of today nerdlog doesn't support more than 2 files in a logstream Ah, interesting! I read the limitation as "we don't support zipped files," not "we only support two files!" Best of luck, this is neat!

Yeah well the 2-files limitation is mentioned in some other place; but I agree this section could be rephrased to make it more clear too.
Post reply on HN