News for hackers. Stuff that matters.
Re:New(ish) command line tools by mihaitodor on Tuesday April 12, 2022 @10:08PM (#31010485)
Speaking of logs, angle-grinder is amazing: https://github.com/rcoh/angle-grinder
Re:New(ish) command line tools by francislavoie on Wednesday April 13, 2022 @07:41AM (#31013501)
That looks awesome. Something I'd love help with, I use pdsh to tail logs from multiple servers at once, but the ways I can manipulate the logs feel really limited because of how pdsh works. Does anyone know of a better solution for that? Like, from a head node, aggregate/tail the contents of the same log file on multiple servers. Bonus points if it uses 'genders' too to get the list of servers.
Re:New(ish) command line tools by tstack on Wednesday April 13, 2022 @09:03AM (#31014115)
The Logfile Navigator (https://lnav.org), a TUI for viewing log files, has support for opening logs on remote hosts via SSH in its latest version. See the following post for more information: https://lnav.org/2021/05/03/tailing-remote-files.html

As for integrating with a “genders” host DB, there’s no direct support for it. But, lnav is scriptable, so I’m pretty sure it’s possible to write a script that does what you want. I can help with that if post in the github discussion: https://github.com/tstack/lnav/discussions