News for hackers. Stuff that matters.
Re:Why are we still tailing log files? by fragmede on Thursday January 20, 2022 @11:05AM (#30010655)
We are? 550 words and no mention of Splunk? I might be preaching to the choir here, but if you're at the cattle-not-pets stage, you owe it to yourself to setup some form of centralized logging. Splunk (no affiliation other than being a happy user) is the premier application in this space, as evidenced by their pricing model, but there are open source (and also proprietary) alternatives available.

In particular, Splunk's query language makes it easy (once you figure it out) to build graphs, so a pie chart or bar graph of, say, how many requests across the whole fleet are hitting a particular endpoint.

Re:Why are we still tailing log files? by Hackbraten on Thursday January 20, 2022 @11:46AM (#30011304)
I don’t want to memorize what a certain graph does after I build it. I don’t want to fight ambiguous menu items. I don’t want to memorize a click path through a web app with dozens of menus and toolbars just to end up at yet another dialect of query language I’m forced to learn.

Oh, and: not to speak of that one person somewhere in the chain of command who keeps barking out orders to randomly disable Splunk ingestion for individual instances due to cost.

Centralized logging gives me headaches and pain.

Re:Why are we still tailing log files? by karmakaze on Thursday January 20, 2022 @11:17AM (#30010851)
I don't know what audience this is for. I imagine most folks know this if they have concepts of observability and monitoring. For others, or when working on side projects, tailing is a perfect fit.

It might be useful to add a few tips for how to tail better, like using `journalctl -f` or `less +F` or ways to tail multiple files.

Re:Why are we still tailing log files? by otoolep on Thursday January 20, 2022 @11:10AM (#30010734)
I agree about the centralized logging -- it's my last point. My bigger question is why is anyone tailing log files anymore when the industry has built such a huge number of tools. It's curious, but tailing still has its place, at least emotionally.
Re:Why are we still tailing log files? by fragmede on Thursday January 20, 2022 @12:14PM (#30011696)
That's why I'm such a huge proponent of Splunk, by name (and again, no relation, just a very happy user). Because of how easy it makes it to create graphs out of log files, the phrase "Tailing is dead, long live tailing!" is simply not true. After seeing that power of centralized logging, most people I've talked to are converts (except for the cost). And perhaps that's why tailing is still so popular. Deciding to invest and learn yet another language, especially a proprietary one that your next employer may not use, is a hard choice to make, given how much other stuff there is to learn.

In Splunk, something like "sourcetype=your_sourcetype | timechart count by status" gives you a chart of HTTPS statuses (200 vs 404 vs 503) over time. After learning that the language it becomes intuitive and is a really really powerful when trying to analyze logs because a visual graph is just so much better than tailing log files. If your centralized logging tool doesn't give you same access to graphing as Splunk does, I'm sorry but it's not good enough to replace 'tail'. Splunk really is the state of the art here and I've yet to see anything that's competitive. (But tbh, I've not looked very hard - the only downsize with Splunk is its cost once you get over a certain size.)

Re:Why are we still tailing log files? by smadge on Thursday January 20, 2022 @11:48AM (#30011330)
Splunk is mentioned in the image showing 30 or so other logging services. It’s a crowded market.
Re:Why are we still tailing log files? by otoolep on Thursday January 20, 2022 @12:02PM (#30011541)
Exactly, I didn't mention Elastic either, another hugely important player.