Presenters

Source

Beyond Syslog: Unlock True Observability with Dynamic Logging Metrics 🚀💡

Let’s be honest – logging has come a long way. For decades, Syslog was the king, a reliable workhorse for transporting log data. But as our systems grew more complex, relying solely on Syslog’s basic metrics felt… limiting. It was like trying to understand a city’s traffic flow by only counting the number of cars passing a single point – you missed the bigger picture. 🗺️

This presentation from the tech conference explored a revolutionary approach to logging metrics – one that moves beyond simple counts and unlocks true observability. It’s all about Exoslog, a clever adaptation of Syslog that’s transforming how we monitor and troubleshoot our infrastructure. 🤖

The Syslog Story: From Transport to… Limited Metrics 📜

Syslog, born in 1998, initially focused on simply moving logs – think of it as a digital postal service for your servers. Its metrics were rudimentary, designed for basic performance – things like the number of queued messages or writes. These metrics were presented in a custom CSV format, lacking the structured labels we need today. 💾 It was a good start, but it lacked the intelligence to truly understand what was happening within our systems.

Enter Exoslog: A Fork in the Road 🛠️

Exoflow recognized this limitation and created exoslog, a fork of Syslog that’s built a powerful new processing language called fterx. The genius of exoslog lies in its ability to adapt Syslog to Prometheus-style metrics – achieved with surprisingly minimal code changes – primarily through string concatenation. This wasn’t a complete overhaul; it was a strategic refinement.

The Core Problem: Missing Context 🎯

The biggest challenge with traditional Syslog metrics is the lack of readily available, structured metadata. Metrics only told you how Syslog was operating, not what was being logged. Labels were static, and the data itself was processed later in the pipeline. Imagine trying to diagnose a server issue without knowing which host, service, or rack was experiencing the problem. 🤯

Dynamic Metric Definition: Adding Intelligence 🧠

That’s where exoslog shines. It allows users to define custom metrics and labels directly within the pipeline. This is where the magic happens. By enriching logs with metadata – like host, service, rack, and agency – we gain a much deeper understanding of our systems. The fterx language makes this dynamic definition incredibly flexible.

How it Works: Enrichment in Action 💻

Let’s look at an example. The code demonstrates how labels – like host and service – are extracted from parsed log data (using JSON or CSV) and incorporated into metrics. This process, called “enrichment,” is central to exoslog’s approach. It’s about adding context that wasn’t present in the raw log data.

Prometheus Compatibility: Leveraging Existing Tools 🌐

The best part? Exoslog maintains compatibility with Prometheus. This means you can continue to use your existing dashboards and alerting rules – no need to rewrite everything! 📡

Tools of the Trade ⚙️

  • Syslog: The foundational log transport protocol.
  • Prometheus: Used for metric aggregation and visualization.
  • exoslog: A modified Syslog implementation with enhanced metric capabilities.
  • fterx: A custom processing language developed by Exoflow for defining metrics and data transformations within exoslog.
  • Sen Key: A visualization technique used to analyze metric distributions and identify anomalies.

Challenges and Tradeoffs: It’s Not Always Smooth Sailing 🚧

Retrofitting Syslog to support dynamic metrics wasn’t without its challenges. There were limitations – a lack of type and hub directives, for example. The core challenge remains the delayed availability of structured metadata, necessitating custom metric definition. And, defining these custom metrics and labels requires careful consideration of the data and use cases.

Real-World Impact: Reduced Manual Effort 💪

The presentation showcased a compelling case study. By using dynamic metrics, they dramatically reduced the time spent manually analyzing fallback logs – eliminating the need to untangle host information. This translates to significant time savings and improved efficiency.

Proactive Monitoring: Seeing Problems Before They Happen ✨

More importantly, dynamic metrics enable proactive monitoring. They allow you to detect potential issues – like agency load – before they escalate into major problems.

Q&A: Addressing the Concerns 🙋‍♀️

  • Audience Question: “How does this compare to using Prometheus directly?” – The speaker clarified that exoslog leverages Prometheus’s querying and dashboarding capabilities, offering a unified observability solution.
  • Audience Question: “What about the overhead of generating these dynamic metrics?” – The speaker emphasized that Syslog’s cumulative metric approach minimizes performance impact.

The Takeaway: A Shift in Thinking 💫

The presentation powerfully advocates for a shift in thinking about logging metrics. It’s no longer enough to simply track performance indicators. We need to actively enrich log data with contextual metadata. Exoslog’s approach demonstrates a practical path to achieving this, offering improved observability, faster troubleshooting, and proactive monitoring capabilities. 🚀


Appendix