Skip to content

Comment on Ask HN: What is a simple tool for parsing and analyzing log files?

Comments

Syslog + something to massage the data (sh/awk/sed, perl, python)? Like we've been doing for simple apps for decades?

It's even simpler today with systemd, you can write stuff like:

    journalctl -u nginx --since yesterday

That's not simpler than 'cat /var/log/messages' or the equivalent, if for no other reason than you still need something to digest/summarize the output. It's just different, mostly for the sake of being different, but I'll not bait the systemd fanbois any farther.

It's simpler in the sense that journalctl already provides some filter options that you no longer need to build yourself.

There are a lot of people that use OS with systemd, but only a small part know about journalctl. I took this opportunity to spread this information.

The bastard in me wants to say "once again systemd and its ecosystem reinvent something that the Unix Way already solved decades ago, just in a different way".

But in reality, thanks for the tip. I used your example today to look into an issue I'd have otherwise been cussing "where's the damn logs!".

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.