Loggly Blog: Code

Logging in New-Style Daemons with systemd

With new-style daemons, systemd has introduced a new way of writing daemons that vastly simplifies the process for programmers compared to the old approach. One part of this new approach is the way new-style daemons can handle logging. Instead of worrying about the many complexities involved in logging, such daemons are encouraged to simply use […]

How to Monitor Logs with Loggly Live Tail and Datadog

Introduction A log management tool like Loggly has become an essential part of the operational infrastructure for monitoring cloud-based applications. In an application stack made up of clusters of multiple machines, logging into an individual machine is inconvenient at best, and even infeasible in cases where a cluster would have a large number of machines, […]

Logging for Cloud-Native Apps

When it comes to building and running applications that are native to the cloud, a number of old habits must die and make way for modern alternatives. One of these is traditional file-based logging. The days of using tail -f to watch logs scroll by in five different terminals are over. This becomes even clearer as you […]

Five Invaluable Techniques to Improve Regex Performance

Regular expressions are powerful, but with great power comes great responsibility. Because of the way most regex engines work, it is surprisingly easy to construct a regular expression that can take a very long time to run. In my previous post on regex performance, I discussed why and under what conditions certain regexes take forever […]

Regexes: The Bad, the Better, and the Best

A Story about How Just a Few Characters Can Make Such a Big Difference in Performance Regular expressions are incantations that we developers wield mightily when the time calls. Yet, do we always wield them deftly? Regular expressions are a delicate and precise language. They are crafted with careful deliberation into powerful forces that level […]

Exceptional Logging of Exceptions in Python

Aaron Maxwell is author of the Advanced Python Newsletter. Exceptions happen. And as developers, we simply have to deal with them. Even when writing software to help us find burritos. Wait, I’m getting ahead of myself… we’ll come back to that. As I was saying: How we deal with exceptions depends on the language. And […]

Logs for Drupal: Why You Need Them and How to Do It

Your team invested countless hours in development. Your QA people can barely keep their eyes open because they have worked so hard. Your lead developer who’s responsible for the deployment is almost dehydrated from so much pressure and sweat. But it’s all worth it. Your app is live. Now everybody goes to sleep, and your […]

Holiday Fun: Debugging a Home Network with Loggly

After a recent rainstorm with accompanying 40+mph wind gusts, I was having intermittent Internet connectivity problems.  There were days went connectivity would drop for 20-30 seconds dozens of times.  Then there would be stretches of perfectly solid connectivity.  After turning off some extra devices and access points to simplify the LAN, there was some improvement, […]