<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Daniel Rogatchevsky on Medium]]></title>
        <description><![CDATA[Stories by Daniel Rogatchevsky on Medium]]></description>
        <link>https://medium.com/@danielvrog?source=rss-2e1de2456950------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QhqymYwUDfR2H4k4jzGPhA.jpeg</url>
            <title>Stories by Daniel Rogatchevsky on Medium</title>
            <link>https://medium.com/@danielvrog?source=rss-2e1de2456950------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:27:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@danielvrog/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How We Cut Log Volume Without Blindfolding Production]]></title>
            <link>https://medium.com/appsflyerengineering/how-we-cut-log-volume-without-blindfolding-production-05d82be13ec9?source=rss-2e1de2456950------2</link>
            <guid isPermaLink="false">https://medium.com/p/05d82be13ec9</guid>
            <category><![CDATA[finops]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[appsflyer]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Daniel Rogatchevsky]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 13:39:04 GMT</pubDate>
            <atom:updated>2025-12-02T22:01:47.630Z</atom:updated>
            <content:encoded><![CDATA[<p>Moving from intuition to data-driven decision: A risk-free framework for suppressing log noise at the source.</p><h3>The Signal vs. The Bill</h3><p>If you manage massive workloads on Kubernetes and a vast range of multicloud managed resources, you probably know the specific anxiety of staring at your observability bill. You know there is waste in there. You suspect it’s massive. But you also know the fear: “If I suppress these logs to save money, will I be flying blind during the next incident?”</p><p>That was precisely where we were.</p><p>When we took a hard look at our logging data, we didn’t start with intuition; we started with attribution. We mapped log size and volume across roughly 1,800 distinct log sources. The results indicated that only a single-digit percentage of our logs actually contributed to debugging or incident response, while the others were mostly used for auditing and general observability.</p><p>In this post, I’ll walk you through how we solved this. We didn’t simply dial down log levels or randomly drop logs (which is a risky approach); instead, we partnered with a startup called <a href="https://auditty.ai/">Auditty</a> to suppress redundant logs at the host level. More importantly, I’ll share the Offline Validation Framework we built to prove it was safe, allowing us to replay peak production traffic without touching a single production workload.</p><p>If you are looking for a way to reduce observability cost without risking production stability, this is how we did it.</p><h3>The Challenge:“Just Tune It” Wasn’t Realistic</h3><p>The standard advice for high log costs is “just fix your log levels.” For a small startup, that works. For an estate like ours, spanning countless microservices, data workloads, and stateful systems like Kafka, it’s a logistical nightmare.</p><p>Asking hundreds of service owners to manually re-instrument code takes months, competes with product roadmaps, and puts the burden of “guessing what’s important” on the developer. AppsFlyer Engineering also enforced a strict mandate against accepting a “black box” solution. Dropping data required complete visibility into exactly what was being suppressed, where, and why. Additionally, security protocols demanded assurances that sensitive data would never be accessed by a third party or leave the network perimeter at any point during the process</p><p>We needed a solution that:</p><p>1. Removed noise at the source (before we paid for outgoing network traffic or ingestion).</p><p>2. Required zero code changes from our service teams.</p><p>3. Guaranteed safety — no missing critical signals, no weakening of our security posture.</p><h3>Our Solution: The Offline Validation Framework</h3><p>Auditty offered a host-level agent to aggregate and suppress repetitive logs. However, as a platform team, we couldn’t simply deploy a new agent into our production environment based on faith. We needed concrete data, and we needed to obtain it in a way that respected our security model: evaluation in a segregated environment, no direct vendor access to production systems, and no expansion beyond that until they met our compliance requirements.</p><p>We initiated a design partnership focused on a specific technical challenge: How do you evaluate a suppression engine at full scale without risking live systems? And how to leave the service owners in full control in a seamless and user-friendly way?</p><p>From the beginning, we agreed that all log samples would remain in our accounts, that the first phase would run in a dedicated AWS sandbox account, and that moving closer to production would be gated by Auditty completing our security prerequisites.</p><p>Here is the architecture we built to test it.</p><h3>The Peak Hour Replay</h3><p>Instead of deploying the agent to a live node immediately, we took a snapshot of the current state. We enabled a log forwarder from our observability provider for one full peak hour, exporting every single log line from across the company to an S3 bucket.</p><h3>Slicing the Data</h3><p>We used AWS Athena to slice that massive compressed dataset into one-minute sub-buckets. This allowed us to simulate the agent’s near-real-time behavior in manageable chunks when a CLI instance is exposed to an entire minute of logs, rather than using a sliding window over a live Kubernetes log stream.</p><h3>The “Offline” Agent (CLI)</h3><p>We asked Auditty to build the suppression engine in a way that is decoupled from the Kubernetes runtime, allowing us to run it against static S3 data. By wrapping the core logic in a CLI, we treated the agent as a data processing step rather than a live service.</p><p>We used a powerful EC2 instance to execute multiple CLI instances concurrently against the one-minute sub-buckets, effectively replaying the entire peak hour through their engine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ndjj74FPlifvp7JcaWYh4w.png" /><figcaption>Offline replay of one peak hour of logs: export from observability provider, slice by minute in S3/Athena, run CLI, and aggregate per-service suppression results.</figcaption></figure><p>Offline replay of one peak hour of logs: export from observability provider, slice by minute in S3/Athena, run CLI, and aggregate per-service suppression results.</p><h3>The Cross-Check</h3><p>To ensure the offline test matched reality, we compared the CLI results against a live log suppression in a Kubernetes cluster. We utilized our highly modular Kafka deployment, which included a variety of synthetic data producers and consumers. Auditty Edge agents were deployed to all node pools, next to stateful and stateless workloads such as Kafka brokers, controllers, operators, exporters, UI tools, connectors, and other related services. The agent successfully identified and suppressed the repetitive messages.</p><p>The deviation between the offline replay and the live stream was negligible, amounting to only a few percent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hrhv-7qn44pbaL4gC9FMDw.png" /><figcaption>The real-time effect of the Auditty Edge on a Kafka cluster — a significant drop in the volume of the shipped logs.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WZyJ2mjO2Vvl3p6QhWjE4A.png" /><figcaption>Example of a log sample with a suppression summary.</figcaption></figure><h3>The Results: 66% Less Noise, 0% Blind Spots</h3><p>The offline validation gave us the confidence to move forward, and the results were immediate.</p><p>The drastic reduction in log volume was evident. Under <strong>default settings</strong>, we removed roughly <strong>two-thirds</strong> of the log volume.</p><p>We obtained the critical data points necessary for proper decision making without any operational impact and almost at no cost. The suppression logic aggregates repetitive patterns rather than blindly dropping lines, ensuring the essential signals are retained. The agent distinguishes log segments of business significance like UUIDs and does not suppress them. We didn’t see any regression in our ability to investigate incidents, and we can easily opt out any sensitive components.</p><p>We tested the agent in live and offline environments under strictly defined boundaries: if the agent fails, it fails open, ensuring logs flow normally. Moreover, we validated log integrity by insisting on a “dry run” capability, when no logs are suppressed, but the potential suppression summary is provided. This gave us confidence in the agent’s functionality.</p><p>Moving beyond the initial sandbox phase was aligned with our existing security and compliance standards. All processing occurs locally in our clusters or controlled accounts, ensuring that no data leaves our premises.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*bpZXlJzM_ijfivdZRBTsEg.png" /><figcaption>The top log emitters from the offline evaluation achieved an average suppression rate of 66%. Some high-volume log sources are non-repetitive, hence a lower suppression rate</figcaption></figure><h3>Real-World Impact</h3><p>Success meant integrating the solution seamlessly into our engineering culture. We insisted on a Kubernetes-native approach, managing configuration strictly through Helm charts and annotations. The Configuration as Code approach enabled service owners to trust the system, providing them with the flexibility to opt in or create exception rules to preserve specific log patterns used for metric generation.</p><p>We validated this approach by gradually deploying the agent to ~50 Kafka clusters spanning over 1,000 servers. By leveraging Kubernetes Quality of Service (QoS) and priority classes, we ensured the agent never competed with stateful workloads for resources, despite its surprisingly low CPU and memory footprint.</p><p>The result was a 50% average reduction in log volume across our Kafka infrastructure. Crucially, this efficiency is dynamic: during high-traffic spikes, the agent suppresses repetitive noise even more aggressively.</p><p>We are gradually rolling out the agent to our stateless workloads in production, working closely with multiple stakeholders. Our Everything as a Code culture and the high level of GitOps adoption make the process seamless, transparent, and without operational overhead.</p><h3>Turning Noise into a Controlled Variable</h3><p>For us, this initiative proved that observability cost is a technical challenge we can engineer our way out of, rather than a financial tax we simply accept. By insisting on a rigorous evaluation, testing, and data points extraction, we have turned log volume from a side effect of growth into an actively controlled variable.</p><p>It was a great demonstration of the strength that is in a good design partnership, where we collaborate based on real, large-scale production use cases, leveraging the fast and focused innovation of a small startup like Auditty.</p><p>This success wasn’t just about finding a new tool; it was about defining the strict engineering standards that any tool must meet to run in AppsFlyer. Ultimately, we found a way to reduce waste without compromising the signal.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05d82be13ec9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/appsflyerengineering/how-we-cut-log-volume-without-blindfolding-production-05d82be13ec9">How We Cut Log Volume Without Blindfolding Production</a> was originally published in <a href="https://medium.com/appsflyerengineering">AppsFlyer Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>