Show HN: Tailspin – A Log File Highlighter
139 points| bensadeh | 2 years ago |github.com
However, a lot of the time I found myself just opening raw log files in `less`. I enjoy the simplicity of quickly skimming through the logs, but it was difficult when the wall of text was in one color.
For this reason, I created a command line tool called `tailspin` (the name is a take on the `tail` command) that did one thing: highlighting of log files. It is configurable, but requires no setup. It defaults to opening up a file in `less`, but can also work with stdin and stdout.
mh-cx|2 years ago
EDIT: Ok, there's something in the "Working with STDIN and STDOUT" section. But TBH I'd find it more helpful to have the different use cases collected at the top. To me it wasn't even clear how the command is called.
cyberge99|2 years ago
bensadeh|2 years ago
joshka|2 years ago
1: https://lnav.org/
tstack|2 years ago
I actually started working on one earlier this year and made some progress before getting distracted. I was using tui-rs, which then got forked to ratatui. I should check back in with it sometime soon.
swah|2 years ago
joshka|2 years ago
Groxx|2 years ago
kunley|2 years ago
If you look at it more closely, it can be seen that there is no configuration needed for pattern discovery, but there is for colors. Still, it all together looks a bit dumb. I mean, it's pretty un-marketing to claim something and in the following section do the opposite, even if for a different reason.
I believe this unfortunate working can be fixed.
johnmaguire|2 years ago
This looks like a great alternative. There was no Homebrew package so I installed Cargo in order to compile it.
Unfortunately, the first log file I tested it on (admittedly quite large at 868M) took 2 minutes and 45 seconds to open in tailspin, pegging a core the entire time. This same file opens instantly with less.
RandomBK|2 years ago
[0] https://github.com/garabik/grc
miller_joe|2 years ago
drcongo|2 years ago
michaelmcdonald|2 years ago
textcal|2 years ago
tibanne|2 years ago
thinphp|2 years ago
tamimio|2 years ago
philo23|2 years ago
I’ve not found anything like that yet though, closest I’ve come is using grep with the before/after/context flag with a high number of lines or using search in less, but I want to do something like...
Maybe I’ve just not found the right flag for grep yet...Edit: Thank you everyone for your suggestions, you've all been very helpful! And apologies again for hijacking the topic, tailspin looks very neat.
loudmax|2 years ago
svedin|2 years ago
jstanley|2 years ago
CubsFan1060|2 years ago
| less -p ".jpg"
unknown|2 years ago
[deleted]
unknown|2 years ago
[deleted]