Category: Splunk

  • Splunk Cloud Cost Optimization: Data Model Acceleration — The Hidden SVC Multiplier

    Splunk Cloud Cost Optimization: Data Model Acceleration — The Hidden SVC Multiplier

    By Trevor Savage, Splunk Consultant II

    If you run Splunk Cloud with Enterprise Security and you’ve ever audited your top SVC utilization by user, you’ve almost certainly missed one of your largest, most consistent compute costs. It isn’t a runaway dashboard or a power user with a bad habit of running index=*. It’s data model acceleration — and it hides in plain sight behind a system account most people never look at twice. 

    This isn’t a “turn off acceleration to save money” post. Accelerated data models are the backbone of Enterprise Security. Without them, your correlation searches and tstats-backed detections would crawl. The point here is narrower and more useful: DMA is a fixed, recurring SVC tax that’s easy to over-provision and almost impossible to see if you don’t know where to look. Once you can see it, you can right-size it without giving up the speed you’re paying for. 
     

    Why it’s hidden:  

    Two things conspire to keep DMA cost off your radar. First, acceleration runs whether anyone uses the model or not. A persistently accelerated data model runs summarization searches on a schedule — by default every five minutes — to keep its high-performance analytics store current. That’s roughly 288 summarization runs per model per day, every day, indefinitely, regardless of whether a single pivot, tstats search, or correlation rule ever touches it. Acceleration is a standing background process, not an on-demand one. 

    Second, and more importantly for an audit, it doesn’t run under a human’s name. On Splunk Cloud, summary refreshes, report accelerations, and data model accelerations are executed by the internal “splunk-system-user”, and that work consumes SVCs just like any other search. So when you pull “top SVC consumers by user” in the Cloud Monitoring Console, all of that acceleration compute collapses into a single system account that’s easy to scroll right past. The cost is real, it’s continuous, and the standard first-pass audit makes it invisible. 

    Why ES makes this worse: 

    Enterprise Security is the single most common reason a Splunk Cloud environment uses DMA. ES ships with the CIM data models, and the standard guidance is to accelerate the ones backing your detections. DMA is, by Splunk’s own description, one of the most resource-intensive parts of an ES deployment — so any inefficiency here is multiplied by the breadth ES encourages. The amplifier that bites hardest is index scoping. Each CIM model decides what to summarize based on its  cim_<datamodel>_indexes macro.  If you leave the macro empty, you’re paying extra to repeatedly confirm that the logs you need aren’t in every index.  

    Three patterns account for the overwhelming majority of wasted DMA spend: 

    Unused acceleration — models accelerated by default during ES setup whose underlying data sources were never onboarded, or whose detections were never enabled. 

    Unconstrained acceleration — models whose cim_*_indexes macros point at index=* (or close to it), forcing summarization to scan irrelevant data. 

    Redundant acceleration — identical summaries rebuilt independently across multiple search heads or search head clusters that could share a single summary instead. 

    None of these require disabling acceleration to fix. They require aiming it. 
     

    Running the diagnostics:  

    Run these from your ES search head.  

    1. Inventory every summary — size, state, and crucially, whether anyone uses it 

    | rest /services/admin/summarization by_tstats=t splunk_server=local count=0  
     
    | eval datamodel=replace('summary.id', ("DM_" . 'eai:acl.app' . "_"), "")  
     
    | eval size_mb=round('summary.size'/1024/1024, 2)  
     
    | eval last_access=strftime('summary.access_time', "%Y-%m-%d %H:%M:%S")  
     
    | table datamodel, eai:acl.app, summary.access_count, last_access, size_mb, summary.last_error, summary.time_range  
     
    | rename summary.* as *  
     
    | sort - size_mb 

    This is your headline diagnostic. The size_mb column tells you what each model costs in storage, while access_count and access_time tell you whether that cost is buying you anything. A large, fully-built summary with a near-zero access count and a stale access time is the clearest signal of waste you’ll find — you’re summarizing data nobody queries.  

    2. Watch the actual summarization workload 

    index=_internal sourcetype=scheduler search_type=datamodel_acceleration 
    
        earliest=-7d latest=now 
    
    | stats count AS host_runs, sum(run_time) AS host_sum_rt, max(run_time) AS host_max_rt 
    
            by savedsearch_name host 
    
    | stats sum(host_runs) AS runs, dc(host) AS num_hosts, avg(host_runs) AS avg_runs, 
    
            sum(host_sum_rt) AS total_runtime, max(host_max_rt) AS max_run_time 
    
            by savedsearch_name 
    
    | eval avg_runs = round(avg_runs, 0), 
    
           avg_run_time = round(total_runtime / runs, 1), 
    
           max_run_time = round(max_run_time, 1) 
    
    | table savedsearch_name, runs, num_hosts, avg_runs, total_runtime, avg_run_time, max_run_time 
    
    | sort - total_runtime

    This search highlights several important compute figures. total_run_time per model is a reasonable proxy for compute weight before you go to SVC metrics directly, and the runs and avg_run_time per acceleration fields allow you to go one layer deeper. With the default DMA cadence of every five minutes, each acceleration should have approximately 2016 runs/week/search head, so if the avg_runs field is notably higher or lower than 2016 this could warrant a review of the acceleration schedule and any potential errors. An additional thing to look out for here, is if any datamodel has a max_run_time, or even worse and avg_run_time of 3600 seconds. 3600 seconds ES default time limit for accelerations, and if reached, the acceleration will stop and any remaining unaccelerated data can be lost.  If searches are hitting this limit, it is heavily recommended to review and triage the datamodel constraints and volume instead of increasing the limit.  
     

    3. Find the unconstrained-macro problem 

    | rest /servicesNS/-/-/data/models splunk_server=local count=0 
    
    | search acceleration=1 
    
    | eval macro_title = "cim_" . title . "_indexes" 
    
    | join type=left macro_title 
    
        [ | rest /servicesNS/-/-/configs/conf-macros splunk_server=local count=0 
    
          | rename title AS macro_title, definition AS index_macro 
    
          | table macro_title, index_macro ] 
    
    | fillnull value=NULL  
    
    | table title, eai:acl.app, acceleration.cron_schedule, 
    
            acceleration.earliest_time, acceleration.max_time, 
    
            macro_title, index_macro
    
    | sort title 

    This search identifies which datamodels have index constraints. If the macros return indexes, you can be confident the acceleration searches are running much more efficiently than the macros that are only (). With the permissions of the splunk_system_user, () can be as bad as index=* running every five minutes.  If the macro value is null, it can indicate the macro was never set up, it was not needed, or there are additional permission issues and should merit further review.  

    4. Confirm acceleration is actually keeping up 

    | tstats summariesonly=f count FROM datamodel=Network_Traffic 
    
        WHERE earliest=-60m@m latest=-55m@m BY _time span=1m 
    
    | eval series="indexed" 
    
    | append [ 
        | tstats summariesonly=t count FROM datamodel=Network_Traffic 
    
            WHERE earliest=-60m@m latest=-55m@m BY _time span=1m 
    
        | eval series="accelerated" ] 
    
    | timechart span=1m max(count) BY series 

    Swap in whichever model you’re investigating. A persistent gap between the indexed and accelerated series means summarization can’t keep up with ingest — you’re paying for acceleration and still falling back to raw data on every search. That’s a model that needs its scope tightened or its backfill reconsidered, not one that’s saving you anything yet. 

    Fixing it without throwing away the speed you paid for 

    The goal is to make acceleration deliberate. Every accelerated model should map to data you actually ingest and detections you actually run. 

    Disable what nothing uses. Cross-reference your summary inventory (search #1) against your enabled correlation searches and onboarded data sources. Any model with a built summary, near-zero access count, and no detection depending on it is a candidate to turn off. This is almost always the highest-ROI change in an ES environment, because default ES setups tend to accelerate broadly regardless of what’s actually been onboarded. 

    Scope the index macros. For every model you keep, make sure its cim_<datamodel>_indexes macro lists only the indexes that can plausibly contain that model’s data. This single change often cuts summarization compute dramatically because you stop scanning irrelevant indexes 288 times a day. 

    Tune the summary range. Each acceleration’s summary range should match how far back your detections and dashboards actually query, no further. The Splunk recommended range is 90 days. Additionally, a deep backfill range makes the initial build and every post-change rebuild scan enormous numbers of buckets. ES guidance is generally to keep backfill modest — on the order of 4–12 hours — to limit buckets scanned, unless you have a specific reason to summarize further back.  

    Share summaries across search heads. If you run multiple search heads or search head clusters accelerating the same CIM models, you may be rebuilding identical summaries independently on each. Summary sharing via acceleration.source_guid lets a reader model consume a writer model’s summary instead of building its own, eliminating redundant work. This is particularly relevant for multi-stack or MSP-style deployments and is the lever fewest people know exists. 

    Mind the rebuild storms. Every time you change a data model’s definition, its summaries rebuild. With the default allow_old_summaries=false, searches fall back to raw data during that rebuild — so a careless CIM tweak triggers both a compute spike and degraded search performance simultaneously. Batch your model changes, make them during low-usage windows, and understand that “just adjusting a field mapping” has a compute cost on the back end. 

    Make it a habit, not a cleanup 

    DMA cost isn’t a one-time project because your environment isn’t static. New data sources get onboarded, detections get enabled and disabled, ES content updates ship new models. Build the summary inventory search into a recurring review — quarterly is a reasonable cadence — and treat any accelerated model that isn’t earning its keep as a finding. 

    The takeaway isn’t that acceleration is expensive and should be avoided. It’s that acceleration is a deliberate trade of compute for speed, and the waste lives entirely in the unused, unconstrained, and redundant corners of it. A handful of well-aimed, well-scoped accelerated models is exactly what you want in an ES deployment — it’s what makes your detections fast and your analysts productive. The hidden multiplier only works against you when you stop paying attention to what you’ve accelerated and why. 

    About the Author

    Trevor has over 6 years of experience in the Information Technology field, with 3 years of experience in Cybersecurity and a specific focus on Splunk. He has worked with Splunk cloud as well as Splunk Enterprise on-prem. He has strong knowledge of configuring, deploying, and tuning detections as well as setting up Splunk Enterprise Security. He has experience with integrating many security tools with Splunk and normalizing that data for efficient querying. He currently holds Splunk’s Core Certified Consultant certification.

  • MDR vs. MSSP vs. SIEM: Which Best Fits Your Security Operations Needs? 

    MDR vs. MSSP vs. SIEM: Which Best Fits Your Security Operations Needs? 

    By Judd Robins, Executive Vice President

    Keeping up with the increase in sophisticated cyberattacks while managing a team of security experts can feel like an uphill battle — even more so with AI. There’s not enough time in the day and getting your arms around your security tools while managing alert fatigue can feel draining.  

    And looking for the right mix of services and solutions to best complement your security operations can feel overwhelming. Most even say it resembles alphabet soup between all the acronyms and terms. But the value of a well-rounded cybersecurity program can’t be overstated enough.  

    From enabling a proactive cyber defense posture to covering the chinks in your security armor, you need the right set of capabilities to secure your sensitive data and keep threat actors out of your digital environment. This guide was created with you in mind.   

    We cover the top services and capabilities used today — MDR, MSSP, SIEM — so you have a good understanding of what will best meet your security operations needs, starting with MDR.  

    What Is MDR?  

    Managed detection and response (MDR) is a service that combines technical expertise with advanced technology and proactive threat hunting. The service provider acts as an extension of your team by continuously monitoring your digital infrastructure 24/7 for malicious activities or policy violations.  

    Think of it as an extra pair of eyes and hands that provide ground cover for flagging any abnormal activity across your threat surface. They help detect and contain attacks earlier, protecting your digital infrastructure and providing real-time support for mitigating a live security event.   

    An MDR service typically provides the technology to achieve continuous monitoring and pulls data from a SIEM (more on that later), vulnerability scans, log sources, cloud workloads, endpoints and more. SOC analysts then use the intel to parse out false positives and identify threat patterns across your ecosystem. 

    Benefits of MDR  

    The benefits of an MDR service include access to 24/7 threat monitoring and coverage, less noise, faster threat detection and remediation, greater cybersecurity resilience and proactive threat hunting. Another benefit is that you don’t have to overhaul your entire security tool stack either.  

    An MDR provider can enhance and complement your current security environment and even uplevel your security team’s skill set by working alongside skilled security professionals. Some providers, like TekStream, provide upskilling as part of their service offerings. Here’s one example.  

    Who’s a Good Fit for MDR  

    If your security operations are lacking the in-house resources (team, security tools, budget) to achieve real-time protection, then MDR is a good fit. Bonus points if you’re in a highly regulated industry, such as healthcare or finance, where there is a regulatory requirement.   

    When looking for an MDR service provider, it’s important to look at their maturity, scope and the security outcomes they deliver. Some providers say they provide MDR capabilities, but upon closer inspection, they could just be providing SIEM device management. Other parameters to consider include:  

    • Proven cybersecurity track record in your industry  
    • Technology stack  
    • Scalability  
    • Compliance reporting support  
    • Pricing transparency  

    What Is an MSSP?  

    A managed security services provider (MSSP) is a third-party provider that has a broader focus beyond threat detection and/or access to advanced security tools. MSSP is considered the oldest security category and can cover monitoring, device management, patching, firewall management, endpoint protection, and more.  

    Read more about the evolution of managed security here.  

    It’s important not to confuse an MSSP with an MSP (managed services provider). An MSP acts as an outsourced IT department for a business; an MSSP focuses on cybersecurity but is more reactive than proactive compared to MDR.  

    The goal of an MSSP is to make sure that all security controls are working as intended. While they flag suspicious activity, they don’t typically undertake the investigation and remediation of a threat.  

    Benefits of an MSSP  

    One of the main benefits of an MSSP is that your team is relieved of the responsibility of managing and monitoring your security tech stack. With fewer false positives to wade through, your team has more time to focus on higher-value-add tasks.   

    Another benefit is that MSSPs can be a cost-effective option for addressing foundational needs, like ensuring patch levels are always maintained and proper backups and policy updates are in place. And MSSPs are particularly useful for supporting regulatory compliance efforts.  

    Who’s a Good Fit for an MSSP 

    While MSSPs can address the needs of highly regulated industries, it’s important that threat detection and response capabilities are included in the contract scope to be sufficient.  Typically, however, MSSPs are best suited for security operations that are seeking to establish the ground floor.  

    However, if your organization absolutely needs advanced threat hunting capabilities or real-time response, you’re better off with an MDR service. That’s because standard MSSP services complement, rather than fully close gaps in threat detection and response. 

    When looking for an MSSP provider, consider their ability and experience in integrating log sources like endpoint detection and response (EDR) and cloud identity. Also request a deeper dive into their incident response and escalation pathways while looking closely at their 24/7 monitoring capabilities and SLAs. 

    What Is a SIEM?  

    Unlike MDR or MSSP, a SIEM (security information and event management) is a software product that collects and analyzes data from several sources like network devices, endpoints, servers, cloud environments and security tools. It’s considered the foundation for a well-established SOC.  

    Some examples of SIEM solutions on the market include Splunk Enterprise Security, CrowdStrike Falcon Next-Gen SIEM, Microsoft Sentinel and IBM QRadar, to name a few. Because of technology advancements, SIEM tools can now also be used to generate security compliance reports, further cementing their importance.  

    A SIEM can be managed in-house, or you can leverage a managed SIEM service where a third-party provider operates and monitors your SIEM. A managed SIEM provider can also help right-size it based on your organization’s needs. However, you can also have your SIEM managed via an MDR or MSSP service.  

    Benefits of a SIEM 

    SIEMs are now considered the bedrock of cybersecurity operations because they consolidate, normalize and analyze security telemetry across your security operations. Using dashboards and reports, your security team is better able to investigate and remediate security events.  

    Another benefit of a SIEM is the ability to create rules that enable it to automatically suss out suspicious activity and flag it for security teams to do a deeper dive. When paired with machine learning capabilities, creating playbooks at scale is easier — significantly reducing threat detection and response times.    

    Who’s a Good Fit for a SIEM  

    A SIEM is table stakes in cybersecurity operations. Security teams need a way to prioritize risks and alerts to ensure they are focusing on the right things. Operating a SIEM in-house may seem more affordable at first glance compared to an MDR, MSSP or managed SIEM service provider, but it’s not without its drawbacks. 

    For one, a SIEM needs constant reconfiguration and benefits from deep platform expertise to ensure you’re getting the most of your investment. It’s one of the reasons why companies rely on our expertise to ensure they are maximizing their Splunk instance, for example.  

    Second, because of the level of expertise needed, it can result in a long deployment time and strain your internal security staff if they’re not sure how to configure the SIEM for your environment. It’s partly why most customers cite false positives as a number one challenge, in addition to cost creep. 

    Finally, securing your cloud or hybrid environments can be challenging without the right level of expertise and resources. For these reasons, managing a SIEM in-house is typically best reserved for robust organizations with the team and resources to manage it. Otherwise, a third-party provider might be the best choice.  

    Deciding Between MDR vs. MSSP vs. SIEM: Key Differences At-a-Glance   

    Understanding what these services and tools are and what they cover is only one part of the equation. Equally important is knowing the key differences between the services and solutions to architect your security operations. Below is an at-a-glance view.  

     MDR MSSP SIEM 
    Scope  Detects, investigates, hunts and implements response actions   Manages security tools and functions, can include MDR   Consolidates and analyzes security telemetry  
    Human Oversight  24/7 SOC analysts  Oversight varies by contract, can include 24/7 monitoring  No analysts included with the software  
    Incident Response  Active or guided  Varies by contract; may escalate alerts or provide MDR capabilities  Supports detection and automated workflows 
    SIEM Relationship May use your SIEM, provide a solution or present a hybrid approach Commonly manages SIEM Can be managed in-house or co-managed with third-party provider or as part of MDR or MSSP  
    Compliance Support  Scope varies; provides incident evidence and response metrics  Often supports control management, reporting and audit evidence  Supports compliance by centralizing logs and reporting  

    So Where Does a SOC Fit Within MDR, MSSP or a SIEM?  

    A security operations center, best known as a SOC, is an in-house or outsourced team of security professionals charged with monitoring an organization’s IT infrastructure. The main objective of a SOC is to reduce your threat surface by detecting, responding and analyzing threats in real time.  

    Securing an organization from cybersecurity attacks requires the SOC to manage all cybersecurity technologies and the continual monitoring of threat data to be successful. A SOC can be managed in-house, with a SIEM serving as the nucleus. It can also be managed via an MDR or MSSP provider via an outsourced or co-managed model. 

    A way to visualize a SOC is to think of it as the manifestation of your security operations. Your security operations house the strategy, policies, tasks, etc., and the SOC is the mechanism or organized team by which you bring your SOC to life and encompasses:  

    • Monitoring and Detection: They typically operate around the clock using advanced security tools to look for signs of unusual activity or breaches. This is where a SIEM comes in. 
    • Incident Response: Because everything is consolidated under a SOC, leveraging a SOAR tool enables you to further orchestrate your operations to quickly deploy investigative work and automate respective tasks such as alert triaging and incident response. The result is a reduction in downtime and greater cyber resilience.  
    • SOC Team: Putting the SOC into action typically requires a team of dedicated cybersecurity analysts. A team is usually comprised of a SOC manager, security analysts, threat hunters and incident responders.  
    • Collaboration and Reporting: To effectively protect an organization’s digital infrastructure, the SOC must work with IT, legal and compliance to develop a unified approach to cybersecurity. This ensures that all potential risks are being accounted for. 

    While creating a dedicated SOC is a great approach to fortifying your cybersecurity operations, it can be costly to stand up. Again, this is where leveraging an MDR or MSSP provider can help. 

    The Verdict: It Doesn’t Have to Be One or the Other  

    Acronyms are both a blessing and a curse in our space. On the one hand, they provide us with shorthand that makes it easy to remember key concepts and terminology. But on the other, they can create more problems than they solve. It’s therefore not surprising that some may think of MDR, MSSP or SIEM as mutually exclusive. 

    They’re not.  

    Yet that doesn’t mean that you must choose between an MDR service or an MSSP, for example, when it comes to your cybersecurity program. Depending on your needs, blending all three might be what’s required to achieve your security goals. It’s not uncommon for organizations to take a layered approach to their security model.  

    Some use an MSSP to handle the foundation of their security operations and their SIEM, while leveraging an MDR provider to access SOC capabilities at cost and at scale. Pairing these solutions together can give you more strategic control long-term than taking everything in-house.  

    But regardless of where you end up, the key to getting it right is starting with what capabilities you need covered. If you feel like you’re still drowning in alphabet soup and would appreciate expert guidance on finding the right combination of technology, coverage and expertise, our team is a click away to get you started down the right path.  

    Get Clarity. Find Your Blend of MDR, MSSP and SIEM.

  • Why Your Splunk Environment Is Slow (And How to Fix It in 30 Minutes) 

    Why Your Splunk Environment Is Slow (And How to Fix It in 30 Minutes) 

    By Chris Swanson, Sr. Splunk Consultant

    Do your users complain about Splunk performance or constantly ask “why is Splunk so slow?”  Are your search heads flagging search delays or skipped searches? In a security environment, poor Splunk performance is not just a user experience issue. Delayed or skipped searches can mean delayed detections, missed notables, and blind spots in your monitoring coverage. In this article I’ll dive into four common issues that can cause Splunk performance to degrade and some quick fixes we can implement to reduce or resolve them. 

    At its core, Splunk performance issues are usually caused by resource contention. Too many searches are competing for limited CPU, memory, and I/O across your search heads and indexers. 

    Four common culprits drive this: 

    • Scheduler delays: Too many searches are scheduled at the same time, so they queue up instead of running immediately  
    • Skipped searches: When delays get too severe, Splunk starts skipping searches entirely  
    • Data model acceleration (DMA) overload: Acceleration jobs consume resources and compete with real-time searches  
    • Workload management not configured: All searches are treated equally, so low-value queries compete with critical alerts  

    Individually, these issues are manageable. But together they can create a feedback loop that degrades performance across your entire environment. 

    If you’ve worked in Splunk long enough, you’ve probably seen some of these: 

    • Monitoring Console shows recurring scheduler delays or skipped searches 
    • ES notables show up minutes late (or not at all) 
    • Dashboards take 10–30 seconds to load  
    • Users complain that “Splunk is slow,” especially during peak hours  
    • Gaps in reports where data should exist  
    • _internal logs filled with scheduler warnings 

    Worse than what you see can be what you don’t see- you think your detections are working but they’re silently failing due to skipped searches. 

    Here’s how to triage and improve performance quickly: 

    Scheduler delays and skipped searches 

    Start by visiting the Cloud Monitoring Console > Search > Skipped Scheduled Searches. If skipped searches exceed 10–15%, you have a problem. Identify problematic searches by checking Splunk’s internal logs: 

    index=_internal sourcetype=scheduler status=skipped 
    
    | stats count by savedsearch_name 
    
    | sort - count

    Skipped searches are a red flag as they represent lost data or missed detections. Identify which searches are skipped and prioritize fixing critical ones (alerts, correlation searches). Often the easiest fix for skipped searches is to stagger the cron schedules controlling when scheduled searches run. It is common for scheduled searches to clump around predictable times, such as the top of the hour, half past the hour, or 15- and 45-minute marks. This is not just a human habit; many searches that ship with Splunk add-ons and even Splunk Enterprise Security are scheduled this way by default. When too many searches are scheduled to kick off at the same time, resource contention can occur, so reviewing and staggering these default schedules can have a meaningful impact. A helpful search to visualize the spread of searches across the hour is the following: 

    | rest /services/saved/searches splunk_server=local 
    
    | search is_scheduled=1 disabled=0 
    
    | rename cron_schedule as cron 
    
    | eval minute_field=mvindex(split(cron," "),0) 
    
     
    
    | eval minute=case( 
    
        minute_field="*", mvrange(0,60), 
    
        match(minute_field,"^*/d+$"), mvrange(0,60,tonumber(replace(minute_field,"^*/",""))), 
    
        match(minute_field,"^d+(,d+)*$"), split(minute_field,","),  
    
        match(minute_field,"^d+-d+/d+$"), 
    
            mvrange( 
    
                tonumber(mvindex(split(replace(minute_field,"/.*$",""),"-"),0)), 
    
                tonumber(mvindex(split(replace(minute_field,"/.*$",""),"-"),1))+1, 
    
                tonumber(mvindex(split(minute_field,"/"),1))))  
    
     
    
    | mvexpand minute 
    
    | eval minute=tonumber(minute) 
    
    | stats count as scheduled_searches by minute  
    
    | sort minute 
    
    

    This SPL expands common cron minute patterns into individual minute buckets and returns an easy-to-understand visualization such as this: 

    An example of scheduled searches heavily concentrated at the top of the hour, half past the hour, and at five-minute increments. 

    Identify times that have an above average number of searches running and adjust the cron schedules of those searches to run at off-peak times instead. For example, instead of running every five minutes at */5 * * * *, consider spreading searches across offsets such as 1-59/5, 2-59/5, or 3-59/5 so they do not all start at the same time. Simply staggering search schedules can dramatically reduce scheduler contention without adding hardware. 

    Splunk also provides an “allow_skew” setting that can offset the actual start time of scheduled searches by a random amount, helping distribute searches that would otherwise all start at the same second. This can reduce resource spikes and scheduler contention, but it should be viewed as a supplement to good scheduling hygiene rather than a replacement for reviewing and staggering heavily clustered cron schedules. 

    Data Model Acceleration 

    Many Splunk admins know that data model acceleration (DMA) is important for your searches and reports to get faster results from large datasets. Not as many know the trade-offs involved or best practices recommended by Splunk. Paradoxically, enabling data model acceleration might increase performance issues in your environment (if it is not configured correctly.) This is because for each data model that is accelerated, Splunk needs to schedule a new recurring search to collect and summarize the events included in that data model. To this end, the first best practice regarding DMA is to ensure that only the data models you actually need are accelerated; if you won’t be frequently searching the dataset (either by detection, scheduled search, or report) then disable acceleration for it. Next, for the data models that you do accelerate, set each cim_<datamodel>_indexes macro to only the indexes with relevant data. This limits the DMA summarization search to a subset of indexes, greatly improving its efficiency. Use Splunk recommended values for the backfill (4-12 hours) and summary range (3 months) unless you have an explicit reason otherwise. Increasing either of these will increase the resource consumption of the DMA summarization search. DMA is great for improving search speed, but it can also be one of the more resource-intensive aspects of Splunk, so you want to make sure you are doing it correctly. 

    Workload management 

    Splunk Workload Management controls how system resources like CPU are distributed across different types of searches. It allows you to prioritize critical workloads such as alerts and detection searches, so they run reliably even when the system is under heavy load. By separating and limiting lower-priority activity like ad hoc searches, workload management helps prevent resource contention and improves overall performance stability. 

    To configure workload management, go to Settings > System > Workload Management > Workload Rules. A good start is to create one rudimentary but crucial rule: critical scheduled searches, such as alerts and correlation searches, get placed in a higher-priority workload pool. This ensures that your most important searches are given the lion’s share of system resources. Workload Management allows you to get even more granular and set different priorities for certain users, roles, apps, and more but that is beyond the scope of this post. For more information on advanced workload settings, see Splunk’s Workload Management documentation. 

    Conclusion 

    Now you have the background knowledge to start troubleshooting a slow or underperforming Splunk environment in 30 minutes or less. Follow the checklist below to inspect each common culprit and verify that best practices are in place: 

    30-Minute Splunk Performance Health Check 

    • Review Monitoring Console scheduler skipped search metrics 
    • Identify delayed or skipped searches 
    • Check for cron schedule clustering 
    • Enable “allow_skew” parameter for searches 
    • Review accelerated data model configurations 
    • Confirm Workload Management pools are configured appropriately 

    In many environments, addressing just one or two of these areas can significantly improve performance without requiring additional hardware or infrastructure changes. More importantly, it can improve the reliability of your detections, reports, and dashboards. Splunk performance tuning is not just about making searches faster but making sure the platform remains trustworthy when your users and security teams need it most. 

    Is your Splunk environment performing the way it should? TekStream’s Splunk experts can help you identify performance bottlenecks, optimize search efficiency, and improve the reliability of your security operations. Contact our team to schedule a Splunk performance assessment.

    About the Author

    Chris has over 11 years of experience in the Information Technology field, with 5 years of experience in Cybersecurity and a specific focus on Splunk. He has worked with Splunkcloud as well as Splunk Enterprise on-prem. He has strong knowledge of configuring, deploying, and tuning detections as well as setting up Splunk Enterprise Security. He has experience with integrating many security tools with Splunk and normalizing that data for efficient querying. He holds the Splunk Certified Architect certification and is currently in training to complete the Splunk Core Certified Consultant certification.

  • How We Stabilized a Production Splunk SOAR Database (And What I Learned Asking an AI for Help) 

    How We Stabilized a Production Splunk SOAR Database (And What I Learned Asking an AI for Help) 

    By David Burns, Team Lead, Automation Engineering

    I want to be upfront about something before this post goes any further: I am not a database person. I’m a SOAR engineer. I build security automation, I write playbooks, I manage integrations. PostgreSQL is the engine running underneath Splunk SOAR and for most of my career I’ve been happy to let it do its thing in the background. 

    That worked great right up until it didn’t. 

    The Problem 

    We run a multi-tenant MDR platform built on Splunk SOAR (formerly Phantom) hosted on AWS. Four production servers, roughly 150 analysts across our customer base, 24/7 operation. No traditional maintenance windows since SOC work doesn’t stop at 5pm. 

    Earlier this year things started going sideways. Analysts were getting 502 Gateway Errors mid-investigation. Playbooks that normally ran in five minutes were taking twenty. The web interface felt like it was running through mud. Then it started happening multiple times a day. 

    The timing was bad. We were running an EOL version of SOAR with an upgrade in flight. We had a complex environment. And the database, a PostgreSQL instance sitting at around 450GB, was the thing nobody on the team had deep expertise in. 

    Learning to See the Problem 

    The first thing I had to learn was how to actually see what was happening inside PostgreSQL in real time. The query that became my best friend over the next several months was this one: 

    SELECT pid, wait_event_type, wait_event, state, 
           now() - query_start AS duration, left(query, 120) as query 
    FROM pg_stat_activity 
    WHERE state != 'idle' 
    ORDER BY duration DESC; 

    That query shows you every active database connection, what it’s waiting on, and how long it’s been running. When your system is healthy you see a handful of short-lived queries. When it’s in trouble you see a wall of queries stuck on IO: DataFileRead that have been running for ten minutes. 

    The first time I ran it during a 502 incident I had no idea what I was looking at. That’s where Claude came in. 

    AI as a Database Colleague 

    I want to be very careful about how I describe this, because there’s a lot of breathless content out there about AI doing things for you. That’s not quite what happened here. 

    What actually happened is I would paste the output of that pg_stat_activity query into Claude and ask what I was looking at. And instead of getting a generic explanation of PostgreSQL, I’d get a specific answer about what was happening in my system right now. “These eight queries are all scanning the artifact table looking for rows where search_vector_version needs updating. There’s no index on that column. The indexer has a backlog that ranges from 0 to 1.9 billion. This is your main IO problem.” 

    That’s not the kind of answer you get from a documentation page. That’s the kind of answer you get from a DBA colleague who can read a situation. 

    Over the course of several months I learned, through these conversations:  

    • what autovacuum is and why it matters 
    • what dead tuples are and how they accumulate 
    • what VacuumDelay means when you see it in a wait event 
    • why a 72GB table with 202 million rows causes problems when you run an hourly DELETE job against it 
    • what pg_terminate_backend does and when it’s safe to use it. 

    None of that knowledge came from me reading documentation cold. It came from working through real incidents in real time with something that could explain the “why” while I was dealing with the “what.” 

    What Was Actually Wrong 

    By the time we’d worked through several weeks of incidents, the picture was clear. There were four main problems: 

    Dead tuple bloat. PostgreSQL uses a process called autovacuum to clean up rows that have been deleted or updated but not yet reclaimed. Our autovacuum configuration used the default settings, tuned for databases with modest row counts. On a 450GB database with tables holding 200 million rows, those defaults were far too conservative. Tables were accumulating millions of dead tuples and not getting cleaned fast enough. The worst offender was playbook_run_log. A 72GB table that gets hit by an hourly DELETE job as part of SOAR’s data retention process. When that job ran against a heavily bloated table, it would saturate IO and bring the system to its knees. 

    The search_vector_version backlog. Splunk SOAR maintains a full-text search index on the artifact and container tables. The indexer tracks which rows need reindexing using a column called search_vector_version. In our environment, the range of values in that column had grown from 0 to 1,969,704,853. Nearly two billion. Because there was no index on that column, the SOAR indexer was doing full sequential scans of an 18-million-row artifact table repeatedly throughout the day, just to find rows that needed updating. This was a known issue with our EOL version. We opened a Splunk support case. 

    The retention job timing. SOAR’s DataRetentionStrategy job runs every hour and deletes records older than the configured retention window from playbook_run_log. On a well-maintained table this is fine. On a table with a million dead tuples already accumulated, the DELETE operation competes for IO with live traffic. We saw 502 errors regularly in the window after this job ran. 

    Cascading failures. When the database got overloaded, it wasn’t just slow queries, it caused phantom_decided (SOAR’s automation engine) to crash. When decided crashed, all the engine runners restarted. When the runners restarted, their playbook interpreter cache was empty. So for 30-60 minutes after any major DB incident, playbook execution was slow even after the database itself recovered. One problem cascaded into three. 

    What We Fixed 

    Autovacuum tuning. We applied custom autovacuum settings to every significant table in the database, replacing the 20% scale factor default with settings between 0.1% and 1% depending on table size and write volume. This meant autovacuum fired much more aggressively on high-churn tables instead of waiting until a fifth of the table was dead tuples before doing anything. 

    Manual vacuums. While tuning autovacuum fixed the maintenance going forward, we had to deal with the existing bloat. This meant running manual VACUUM operations on the worst tables during quieter periods. playbook_run_log alone went from 13 million dead tuples to near zero. 

    Query monitoring and emergency kills. We developed a set of SQL queries and procedures for identifying and killing the specific query patterns causing problems: artifact search_vector scans, indicator dashboard aggregates, lock storms. This became standard operating procedure for the on-call rotation. 

    Retention policy. We reduced the live operational data in the database to the past six months, archiving everything older to cold storage. This alone significantly reduced the size of several high-churn tables and made the hourly retention job much less impactful. 

    The upgrade. We moved from our EOL version to Splunk SOAR 8.4. After the upgrade, the search_vector_version backlog issue improved dramatically. Pre-upgrade we’d see 10-15 indexer queries piling up at a time, each running for minutes. Post-upgrade we see one query at a time, running for seconds. 

    The Numbers 

    Before we started this work: 

    • Daily 502 outages affecting the entire analyst team 
    • Playbooks running 4x longer than normal after incidents 
    • Database ping response times exceeding 25 seconds during incidents 
    • phantom_decided crashing multiple times per week 

    After: 

    • Ping response time: 0.016 seconds (essentially instant) 
    • Autovacuum maintaining all major tables automatically 
    • search_vector_version backlog: 190,000 rows pending (down from millions) 
    • System stable enough that I can actually take a day off without checking in 

    What I’d Do Differently 

    Instrument the database earlier. We were flying blind for too long. The monitoring script we eventually built — a Python container that queries the database every 15 minutes, feeds the results to a local LLM, and posts alerts to Slack — should have existed from day one. 

    Don’t assume the defaults are right for your workload. PostgreSQL’s default autovacuum settings are reasonable for many databases. They were wrong for ours. It took months of incidents to understand why. 

    On Using AI for This Kind of Work 

    I’ve seen the takes about AI replacing engineers. That’s not what this was. What this was is closer to having access to a knowledgeable colleague who happens to have read every PostgreSQL manual ever written and can apply that knowledge to your specific situation at 2am when something is on fire. 

    The value wasn’t in Claude doing things for me. The value was in Claude helping me understand what I was looking at well enough to make good decisions. After months of working through these incidents, I actually understand PostgreSQL operational concepts now. I know what a dead tuple is. I know why autovacuum matters. I know how to read pg_stat_activity and understand what I’m seeing. 

    That knowledge lives in my head now. It didn’t before. 

    Whether you’re a SOAR engineer, a security analyst, or anyone else who finds themselves responsible for infrastructure that’s outside your primary expertise don’t be too proud to ask for help, and don’t assume the help has to come from a human. 

    Want to improve the performance and reliability of your Splunk SOAR environment?

    Whether you’re troubleshooting recurring database issues, optimizing PostgreSQL, or planning an upgrade, TekStream’s experts can help you build a more resilient SOAR platform.

    Connect with our team to start the conversation.

    About the Author

    David Burns is a security engineer with experience working with Splunk Enterprise Security and Splunk SOAR (formerly Phantom) for a large fortune 200 bank. Before that he was a System Security Engineer working on the automation of security testing of OT systems.

    He brings his 20+ years programming background to use SDLC in rapid development of playbooks, custom functions, and more leading to modularity, re-use in design, and better long-term maintenance. For example, creating deeper integration for escalation through Slack and creating EDL management for multiple clients.

    At TekStream, he developed the slack escalation methodology that notifies customers of events that need their attention as well as a way of process for generating and updating EDLs within Splunk.

  • Lookup Editor v4.0.7 Crash on Splunk Cloud 10.2: Root Cause & Resolution 

    Lookup Editor v4.0.7 Crash on Splunk Cloud 10.2: Root Cause & Resolution 

    By Dave Cheever, Team Lead, MDR Engineering Services, Landon Bond, SOC Manager, and Oliver Dare, Senior Splunk Engineer

    TL;DR 

    Lookup Editor v4.0.7 crashes on affected Splunk Cloud 10.2 builds due to a Python environment isolation bug in the platform, not a flaw in the app itself. Removing the app from affected environments stops the crashes immediately. The permanent fix requires upgrading to at least Splunk Cloud 10.2.2510.18, with 10.3 being the preferred path for the most durable resolution. The technical breakdown of why this happens is below. 

    The Problem 

    Our engineers and analysts began seeing a pattern across several client environments: application crashes and performance degradation consistently tied to Lookup Editor v4.0.7 on Splunk Cloud. Environments running earlier versions of the app continued to operate normally, and removing Lookup Editor from affected stacks immediately restored system performance, indicating the app version was a key factor in the crash condition. 

    The following error was observed in internal Splunk logs across affected environments: 

    ERROR HttpListener [1793132 TcpChannelThread] - Exception while processing request from x.x.x.x:xxxxx for /en-US/splunkd/__raw/services/apps/local/lookup_editor?output_mode=json: bad character (49) in reply size 

    Root Cause 

    A Splunk Cloud update introduced a condition where cloud_administration’s python-dateutil and botocore dependency chain breaks the Python environment that Lookup Editor v4.0.7’s handlers are directed into via the python.required constraint. Python environment isolation was not enforced correctly in affected builds, allowing the broken state in cloud_administration’s runtime to bleed into other apps sharing that environment. When Lookup Editor tries to start its REST handlers in that affected runtime, they crash at import time before serving any requests. 

    The underlying cause is a Python dependency failure. Splunk confirmed that a ModuleNotFoundError: No module named ‘six.moves’ occurs within the cloud_administration app’s REST handling path, caused by a missing dependency in the python-dateutil and botocore chain present in affected Splunk Cloud builds. Because Python environment isolation was not enforced correctly in the affected builds, this broken state in cloud_administration’s runtime propagates into the Python environment that Lookup Editor v4.0.7’s handlers are directed into via the python.required constraint. The result is that when the Lookup Editor’s handlers try to load, they inherit a broken runtime and crash at import time.  

    How the Crash Happens 

    Lookup Editor v4.0.7’s restmap.conf contains a directive requiring its REST handlers to run on Python 3.9 or 3.13: 

    python.required = 3.9,3.13 

    Because Python environment isolation was not enforced correctly in the affected builds, the handler process inherits a broken runtime where six has failed to fully initialize. When the handler loads, it imports from the lookup_editor package, triggering the transitive chain described below, which ultimately reaches shortcuts.py and this import at line 13: 

    from six import StringIO  # For converting KV store array data to CSV for export 

    This looks straightforward, and under normal conditions it works without issue. The app’s bundled six.py defines StringIO as a direct module-level attribute in Python 3 at line 640: 

    StringIO = io.StringIO 

    However, because Python environment isolation was not enforced correctly in the affected builds, the lookup_editor handler process loads into the same broken Python runtime as cloud_administration. In that environment, six cannot be cleanly imported, so when shortcuts.py calls from six import StringIO, the import fails. The exact cause traces to the same environment corruption Splunk confirmed. The root error that produces this broken shared runtime is: 

    ModuleNotFoundError: No module named 'six.moves' 

    This failure in shortcuts.py then cascades up the entire handler stack. While __init__.py does directly import from shortcuts at line 20, that line is never reached because the failure surfaces first through a transitive chain that begins the moment the lookup_editor package initializes. __init__.py line 18 imports lookup_backups, which at its own line 13 imports lookupfiles, which at its own line 10 imports shortcuts. That is the actual point where the six failure surfaces, confirmed by the Python traceback: 

    # __init__.py, line 18 
    from lookup_editor.lookup_backups import LookupBackups 
    # lookup_backups.py, line 13 
    from lookup_editor.lookupfiles import SplunkLookupTableFile 
    # lookupfiles.py, line 10 
    from lookup_editor.shortcuts import escape_filename

    Both REST handlers fail at module load time, before any request is ever served. The failure path is identical for both handlers: the same __init__.py cascade runs regardless of which import triggers it. The only difference is which line in each handler file initiates the cascade. For lookup_editor_rest_handler.py that is line 51, the first import from the lookup_editor package in that file. For lookup_backups_rest_handler.py it is line 15. Lines 46-47 of the backups handler are never reached: 

    # lookup_editor_rest_handler.py, line 51 (the first failure point) 
    from lookup_editor import lookupfiles 
    # lookup_backups_rest_handler.py, line 15 (the immediate failure point) 
    from lookup_editor import shortcuts 
    
    # lines 46-47 
    from lookup_editor import LookupEditor 
    from lookup_editor import rest_handler 

    Because these imports happen at module initialization rather than at request time, both REST handlers crash the instant Splunk tries to load them. The handler subprocess exits abnormally, leaving splunkd’s HTTP listener with a mangled or truncated response instead of a valid HTTP reply. The listener logs this as ‘bad character (49) in reply size’, indicating it received an unexpected character where it expected a valid HTTP size indicator. 

    Every subsequent request to the Lookup Editor hits this same dead endpoint. Since both REST handlers share the same underlying infrastructure, this accounts for the persistent 500 errors that affected not only the Lookup Editor but other Splunk apps as well, as the failed HTTP response from the dead endpoint surfaces through Splunk Web’s shared request layer. 

    Why Earlier Versions Were Not Affected 

    Version 4.0.6 and earlier do not include the python.required directive in restmap.conf. Without it, Splunk runs those app REST handlers in a different runtime that is not affected by the same six.moves corruption. The from six import StringIO import that fails in v4.0.7 has existed in the codebase across multiple versions, but it only becomes fatal when the handler is directed into the runtime constrained by python.required. Earlier versions never targeted that runtime, so they were never exposed to the broken state.  

    Version 4.0.6 restmap.conf contains only: 

    python.version = python3 

    Version 4.0.7 adds a directive constraining the handler to a specific Python version: 

    python.version = python3 
    python.required = 3.9,3.13 

    The conflict is therefore the result of two independent changes arriving together: the python.required directive added in v4.0.7, and the six.moves corruption present in affected Splunk Cloud 10.2 builds. Neither change alone would have caused the crash. 

    Resolution 

    Our engineers worked with Splunk to confirm that the fix is available in Splunk Cloud 10.2.2510.18, where Python environment isolation has been corrected. Splunk Cloud 10.3 also includes this resolution, and is the recommended upgrade path for the most durable fix. Until an upgrade is completed, the Lookup Editor app should remain removed from affected environments to prevent the crash condition from impacting system stability. 

    Experiencing Splunk Cloud performance or stability issues? Connect with TekStream’s Splunk experts to get your environment back on track.

    About the Authors

    Dave Cheever is a seasoned cybersecurity professional with more than a decade of industry experience. Over the past six years he has specialized in Splunk, applying his expertise across both analysis and engineering roles. Beyond his civilian career, Dave serves part time in the Air Force National Guard, where he supports critical national cyber missions for organizations such as the NSA and USCYBERCOM. He holds a master’s degree in Cybersecurity from the University of Massachusetts and maintains several respected certifications, including the CISSP. He is also a certified Splunk Core Consultant and holds accreditation in Enterprise Security implementations. Dave resides near historic Plymouth, Massachusetts, America’s hometown.   

    Landon Bond is an experienced IT professional with 4 years of IT related background including Tech Support and Security/Networking. Landon currently works as a mentor and leader to student analysts within the Louisiana Higher Education instructions. Landon is also responsible for promptly responding to high severity alerts within multiple Splunk environments and acting as an escalation point for student analysts. Landon holds a bachelor’s degree in general studies from the University of Central Oklahoma, and an associate’s degree in cyber security from North Central Texas College. He also holds a security focused CompTIA Security+ certification as well. Landon resides in Marietta, Oklahoma.

  • Building a Network That Doesn’t Exist: Inside the MDR Log Simulator

    Building a Network That Doesn’t Exist: Inside the MDR Log Simulator

    By Jay Young, Sr. Splunk Consultant

    Every detection engineer eventually hits the same wall. You write a correlation search, you tune a risk rule, you build a MITRE-aligned dashboard — and then you need data to prove any of it actually works. Real production logs are messy, sensitive, and impossible to share. Canned sample files are static and obvious. And the moment you want to test an attack technique, you either have to detonate something in a lab or hand-edit a log line and hope it parses.

    I built the MDR Log Simulator to make that wall disappear. It’s a Docker-deployed platform that stands up an entire synthetic enterprise — users, laptops, servers, firewalls, cloud tenants, identity providers — and streams their telemetry into Splunk in each vendor’s real, native log format. Not a generic JSON blob with a vendor field tacked on. The actual on-the-wire shape that a Palo Alto firewall, a Windows domain controller, or AWS CloudTrail would emit.

    This post walks through the three pieces I’m proudest of: the Ambient Scheduler (the engine that makes the fake company behave like a real one), the Add-ons library (Splunk-ready CIM parsing for everything it produces), and Threat Mapping (turning that clean baseline into MITRE ATT&CK and AI-attack test cases on demand).

    The core idea: a directory, not a data generator

    Most log generators are random-line factories. They pick a username from a faker list, a random IP, a random hostname, and emit an event. The problem is that randomness is a tell. Real organizations have shape: a finite roster of people, each tied to a specific laptop, in a specific office, in a specific department, doing a specific job. The same person shows up in the VPN logs, the Windows logon events, the firewall traffic, and the Okta sign-ins — and it’s the same person every time, with the same hostname and the same IP range.

    So the simulator starts from a directory, not a generator. It models:

    • 150 user identities — each with a name, department, role, location, and an activity profile
    • 133 assets — laptops, servers, and network devices, each bound to an owner and an operating system

    Every event the platform produces is pinned to a real entity from that directory. When kmurphy authenticates, it’s her laptop, her office IP, her department in the event. That coherence is what makes the data hold up under a SOC analyst’s gaze instead of falling apart on the first | stats count by user.

    1. The Ambient Scheduler — making the company behave

    A directory of 150 people is just a spreadsheet until something makes them act like employees. That’s the Ambient Scheduler. It’s the clean, directory-bound baseline engine, and its whole job is to answer one question every second of the simulated day: who is online right now, and what would they realistically be doing?

    The Ambient Scheduler running, showing live online/offline status across the directory

    Here’s what’s happening under the hood:

    A real daily lifecycle. People don’t log in 200 times an hour. They arrive in the morning, work, go quiet at lunch, come back in the afternoon, and log off at the end of the day. The scheduler gives every user a deterministic daily plan — login AM → out at lunch → in PM → out EOD — and goes quiet overnight. Servers and service accounts stay online 24/7. In the screenshot above you can see the live online/offline column tracking each entity against its own local time, because a user in San Francisco and one in London aren’t at their desks at the same moment.

    Personas drive the schedule. A rule-based persona engine assigns each entity a working pattern without me having to hand-edit any config:

    • standard — Monday-to-Friday office worker
    • evening_tail — executives who stay late and check in on weekends
    • on_call — security staff with late-night incident windows
    • always_on — service accounts that never sleep

    Activity profiles create real-world skew. If all 150 users emitted identical volume, every behavioral analytics rule in Enterprise Security would flag the entire company as an outlier — because uniformity is the anomaly. So each user is weighted: heavy hitters (developers, SREs, help desk) generate far more telemetry than light users (executives, sales) or dormant accounts. The result is a natural Pareto distribution — a top-to-bottom ratio of roughly 100:1 — exactly like real traffic.

    A rhythm engine handles the timing. Rather than a flat events-per-second firehose, the scheduler samples inter-arrival times from a Poisson process whose rate rises and falls by hour of day, weekday vs. weekend, holidays, and even Patch Tuesday. The traffic breathes.

    The status bar across the top — events fired, online now, offline, users, assets — updates live every five seconds, so you’re watching a synthetic workday unfold in real time. Hit Stop and the whole company goes home.

    One rule I hold to religiously here: the ambient baseline is 100% clean. No threats, ever, leak into the baseline generators. The entire point is to have a believable “normal” so that anything malicious stands out for the right reasons. Threats only enter through deliberate injection — which brings us to the third feature. But first, the layer that makes all of this land in Splunk correctly.

    2. Add-ons — native formats, CIM-compliant, Splunk-ready

    Generating realistic events is only half the battle. They have to parse. A Windows logon event isn’t useful if Splunk can’t pull EventCode and TargetUserName out of it; a firewall log isn’t useful if it doesn’t normalize into the Network Traffic data model. So every data source the simulator produces ships with a matching Technology Add-on — props, transforms, eventtypes, and tags — pre-built for Splunk and the Common Information Model.

    The Add-ons library — 32 installed Technology Add-ons spanning 16 CIM data models and 77+ sourcetypes

    There are 32 add-ons installed, covering 16 CIM data models and 77+ sourcetypes, organized by category — Security, Endpoint, Cloud, Identity, Network, and System. Click into any one and you can see exactly what it normalizes:

    Add-on detail: Palo Alto Networks mapping to Network_Traffic, Intrusion_Detection, and Web data models

    Each add-on declares its CIM data models, its sourcetypes, and its config files, and you can download the .tgz bundle or jump straight into Splunk to inspect it. The coverage spans the tools a real MDR shop actually watches: Palo Alto, Fortinet, Check Point, and Cisco ASA on the firewall side; CrowdStrike, Microsoft Defender, SentinelOne, and Sophos for endpoint; AWS CloudTrail, Azure, and Office 365 in the cloud; Okta, Duo, and Azure AD for identity; plus Windows, Linux, DNS, and email.

    This is the part I refuse to fake

    Here’s the principle that governs the whole project: I do not “improve” a log provider away from how the vendor actually emits it. Field names, delimiters, and structures match the official vendor documentation. That means each source comes out in its own native format, not a homogenized one. Here’s what actually lands on disk:

    Palo Alto Networks — native comma-delimited CSV:

    2026/06/01 22:00:56,007054000012345,CONFIG,2026/06/01 22:00:56,PA-3220-FW01,vsys1,set network interface ethernet,pgray,Web,Succeeded,…

    Check Point — native `key:value` syslog:

    time:1781317589 action:Accept src:10.41.201.250 dst:149.17.216.200 proto:1 service:ftp rule_name:Rule_857 product:”VPN-1 & FireWall-1″ origin:10.41.x.x

    Cisco ASA — native syslog with message IDs:

    Jun 12 21:25:20 SWITCH-ACCESS-SF-01 %ASA-6-302014: Teardown TCP connection 211332 for inside:172.22.122.197/61958 to outside:65.14.193.30/443 duration 00:13:22 bytes 3760285

    Windows Security — native XmlWinEventLog:

    <Event ><System>
      <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-...}"/>
      <EventID>4624</EventID><Channel>Security</Channel>
      <Computer>LAPTOP-JBARNES</Computer>
      <Security UserID="S-1-5-21-1200955418-6691640362-2225174538-4050"/>
    </System>...</Event>

    AWS CloudTrail — native JSON API records:

    {"eventTime":"2026-06-13T02:25:13Z","eventSource":"ec2.amazonaws.com",
     "eventName":"DescribeInstances","eventType":"AwsApiCall",
     "recipientAccountId":"422105323269","requestParameters":{...}}

    Five different sources, five genuinely different formats — CSV, key:value syslog, message-ID syslog, XML, and JSON — exactly as each vendor ships them. A single generator engine renders each provider through its own native renderer and routes it to a file whose name matches the Splunk monitor stanza, so a forwarder picks it up under the correct sourcetype with zero special-casing.

    And look closely at the coherence: that Cisco switch is SWITCH-ACCESS-SF-01 (San Francisco — matching its owner’s location), the Windows event names a real fleet host LAPTOP-JBARNES, and the Palo Alto config change is attributed to the real user pgray. The directory binding I described earlier flows all the way through to the raw event. There are no DESKTOP-XXXX faker placeholders to give the game away.

    3. Threat Mapping — turning a clean network into test cases

    A perfectly clean baseline is exactly what you want — until you need to prove your detections fire. The Threat Mapping page is where I turn the lights off and let something prowl the network. It connects every data source the simulator produces to the MITRE ATT&CK techniques and AI cyber attacks that source is capable of detecting, and lets me inject any of them on demand.

    Threat Mapping overview — 17 providers, 58 data sources, 202 threat mappings

    The numbers up top tell the story: 17 security providers, 58 data sources, and 202 threat mappings between them. Pick a provider and a data source, and the page shows you precisely which techniques that telemetry can surface:

    Palo Alto threat logs mapped to MITRE techniques like T1190, T1203, T1566, and T1210

    Here I’ve selected Palo Alto Networks → Threat Logs (`pan:threat`), which maps into the Network Traffic data model, and the grid lays out the relevant ATT&CK techniques — T1190 Exploit Public-Facing Application, T1203 Exploitation for Client Execution, T1566 Phishing, T1189 Drive-by Compromise, T1210 Exploitation of Remote Services, T1046 Network Service Discovery — alongside the AI-attack category. Each mapping is graded Primary (this source directly detects the technique) or Secondary (correlational, supporting evidence), so I know what kind of signal to expect before I inject anything.

    Every card has an inject button. Click it, and the platform writes threat-bearing events into the matching native log stream — in the correct format, pinned to a real host and user from the directory, just like the baseline. From Splunk’s perspective there’s no seam: the malicious activity arrives under the same sourcetype, through the same forwarder, as everything else. That’s the whole point. A detection that fires on these injected events is a detection that will fire in production.

    And when I’m done testing, Clear Threat Logs wipes the injected events and returns the environment to its pristine baseline, ready for the next experiment.

    Why it all works: one coherent world

    The thing I want to leave you with is that none of these three features stands alone. They’re three views of a single, coherent synthetic organization:

    1. The directory defines who exists — 150 people, 133 machines, each with a real identity.
    2. The Ambient Scheduler makes them behave — realistic daily rhythms, weighted activity, persona-driven schedules, all bound to the directory.
    3. The Add-ons make their telemetry land correctly — native vendor formats in, CIM-normalized data models out.
    4. Threat Mapping drops real adversary behavior into that clean world, in the same formats and bound to the same entities, so detections get an honest test.

    The result is a network that doesn’t exist but is indistinguishable, at the sourcetype and CIM level, from one that does. I can stand up a believable enterprise, watch a workday breathe through Splunk, inject a phishing campaign or a public-facing exploit, confirm my correlation searches and risk rules light up, wipe it clean, and do it all again before lunch — without a single real endpoint, a single byte of sensitive data, or a single line of hand-edited log.

    That’s the wall, gone.

    The MDR Log Simulator runs as a Docker deployment — a React frontend on port 6970, a FastAPI backend on 6971 — streaming native-format logs to a host directory that Splunk monitors directly.

    About the Author

    Jay Young has been involved in Information Technology for 33 years, working with Internet and Agriculture technologies. For 15 years, he worked with and designed Oracle Databases nationally and internationally. Jay has held IT management and development roles. For the last six years, he has focused his expertise on Splunk, Splunk Cloud, AWS, Data Onboarding, and Enterprise Security. Jay holds a bachelor’s degree in computer information systems and earned top Splunk certifications: Splunk Core Consultant (Recertified Oct 2023), Admin, and Architect. He also has accreditations in Enterprise Security. Jay currently resides in Abilene, Texas.  

  • Azure data ingest changes with Splunk Enterprise/Cloud 10.2 

    Azure data ingest changes with Splunk Enterprise/Cloud 10.2 

    By Kyle Moreau, Senior Splunk Consultant 

    Recent updates from Microsoft change the way Azure/Entra data is ingested into Splunk. This change replaces the Splunk Add on for Microsoft Azure with the following apps: 

    • Splunk Add on for Microsoft Cloud Services 
    • Splunk Add on for Microsoft Office 365 
    • Splunk Add on for Microsoft Security 

    Splunk has created a reference guide that describes where the data sources have migrated to: https://splunk.github.io/splunk-add-on-for-microsoft-cloud-services/Migrationguide/ 

    You will notice that some of these sources have shifted to Event Hub logging before being ingested into Splunk, this is mainly due to throttling limits.  

    Azure lists out a pricing plan and general guidelines on determining which pricing option is best for you: https://azure.microsoft.com/en-us/pricing/details/event-hubs/  

    To get a good idea of what your data ingest from these sources looks like today, you can perform metrics searches to determine thruput. The search below give you an hourly representation of how much data is coming into Splunk from Azure Audit logs by the hour. Note that the search displays the average and the max MB/s each hour and displays them in a timechart. I recommend running this search against different days/weeks to get an accurate data sample. 

    index=_internal group=per_sourcetype_thruput series=azure:aad:audit 
    | eval MBps = kbps / 1024 
    | timechart span=1h avg(MBps) as avg_MBps max(MBps) as max_MBps by series 

    If your thruput is low enough to stay in the Basic plan, then you will need to determine the number of events you ingest each month. You can do this with the search below. Make sure to adjust the search time to be at least 1 month.  
     
    | tstats count values(sourcetype) as sourcetype where index=azure sourcetype=azure:aad:audit by index span=1mon _time 

    When you determine your available thruput per sourcetype and event count per month, you can go to Microsoft’s pricing calculator to determine the right Tier for you: https://azure.microsoft.com/en-us/pricing/calculator/?service=event-hubs  

    Once you’ve determined your Event Hub subscription, proceed to setting up Event Hub logging for your data sources. In this example we used audit logs. In Azure, navigate to the Microsoft Entra ID tab, expand Monitoring, select Audit logs, add diagnostic setting, check the stream to an event hub check box and fill in the required settings. In this section you can add all of the log categories you need sent to an event hub. Select save and your new event hub is completed.  

    After configuring your new Event Hub, follow the appropriate Splunk app instructions on ingesting the data.  

    If you need assistance in this new configuration or have questions about what TekStream can do for you, please reach out to us.   

    About the Author

    Kyle Moreau has over 8 years of information technology experience, 6 of which are within information security. As a security engineer, he leads projects for various security tools including SIEM and Endpoint. Maintained and developed solutions to improve the security posture of a fortune 500 organization. Kyle has successfully completed full ES implementations for multiple organizations. Previous experience as a security analyst, focused on incident response and investigation as well as keeping current in the latest attack methods.

  • The Next Phase of Splunk Search

    The Next Phase of Splunk Search

    By Eric Levy, Senior Security Consultant

    On January 15th, 2026, Splunk launched its first major update of version 10.0, 10.2. Among its several new features, it formally introduces integration of SPL2, the next iteration of Splunk’s search processing language. While SPL2 has been used under the covers for years, this is the first time it’s being offered to users from the front end. 

    Officially, Splunk describes it as: 

    SPL2 = SPL (+ optional SQL) + programming concepts 

    SPL2 builds on the groundwork of the original SPL by introducing a variety of new features inspired by SQL and other programming languages to increase productivity, consistency, compatibility, and overall reduce the learning chasm between end users and their ability to search data in Splunk. 

    SPL to SPL2: What’s Changed? 

    For long time Splunkers, do not fear – SPL2 maintains much of what’s familiar about regular SPL. However, there are some syntax changes, some of which we will go over here: 

    Plain Text Values 

    Consider the SPL line: 

    index=main “404” 

    SPL2 no longer supports the use of standalone plain-text search values. We will need to add the search command in front of it to work: 

    index=main search “404” 

    Command Syntax Changes 

    Consider the SPL lines: 

    | stats count by field-1 field-2 
    | bin _time span=5m 

    SPL2 changes the syntax for listing values by requiring a comma-separated list. As such, the | stats command in SPL2 would be written as: 

    | stats count() by field-1, field-2 

    Also note the change to the count function used within the | stats command, which now always includes parentheses. 

    Unlike regular SPL, SPL2 now requires command options to be specified before arguments. The | bin command function should now be written as: 

    | bin span=5m _time 

    Finally, thanks to the introduction of the span option to the | stats command in SPL2, we can now condense these two lines to one (once again, specifying the span before the arguments): 

    | stats span=5m count() by field-1, field-2 

    Changes to the where, eval, and from Commands 

    Consider the following SPL line: 

    | where field* = testValue OR field1 = test-Value 

    In SPL2, use of the where, eval, and from commands require the use of double quotes around a field name or value when using any other characters than letters, numbers, or an underscore. As such: 

    | where “field*” = testValue OR field1 = “test-Value” 

    Changes to concatenation 

    Consider the following SPL line: 

    | eval new-value = field1.” “.field2 

    SPL2 has changed the concatenation character, the period (.), to the more intuitive plus sign (+): 

    | eval “new-value” = field1+” “+field2 

    Changes to Boolean values 

    Consider the following SPL line: 

    | eval result=if(isnotnull(field1), true(), false())  

    In SPL2, the parentheses attached to Boolean values – true(), false(), and null() – have been removed: 

    | eval result=if(isnotnull(field1), true, false) 

    SPL to SPL2: What’s New? 

    SQL Support! 

    In Splunk’s effort to make searching more accessible to end users, SPL2 now supports querying indexed data with SQL commands. Here is an example of integrated SQL usage from the Splunk Docs (note – much of the new aforementioned syntax changes to SPL2, including parentheses after count, still apply): 

    SELECT count(), host, _time  
    FROM main 
    WHERE sourcetype="webaccess" AND `ERROR` 
    GROUP BY host, span(_time, 5m) 
    HAVING count > 10 
    ORDER BY count desc 
    LIMIT 50  
    OFFSET 20 

    For users that don’t know SQL and would struggle acclimating to SPL2 syntax, Splunk provides two options to help users with the transition. 

    First is the in-search option to convert a search written with SPL to SPL2 (screenshot from Splunk Docs): 

    Second is Splunk’s new | spl1 command, which not only provides support for SPL queries but also SPL commands not yet supported in SPL2, such as | map or | makeresults, making the command temporarily useful for practical reasons.  

    The command can be explicitly called upon or done with backticks – but don’t confuse it with the use of backticks for macros, which are not supported in SPL2 at this time. 

    SPL Query SPL2 Query using backticks SPL2 using | spl1 
    | makeresults $newSearch = `| makeresults` $newSearch = | spl1 “| makeresults” 

    Custom Functions 

    Although macros aren’t supported in SPL2, Splunk considers the ability to create custom eval functions as its closest equivalent, since it allows users to wrap SPL2 in reuseable statements. 

    Custom functions are one of two types: 

    1. Generating command functions – used to create a set of events, and are invoked first in a search 
    1. Non-generating command functions – used to process data from other generating or non-generating commands 

    Example syntax for a non-generating command (in this case, returning the mode of a set of integer values): 

    function mode_of_numbers($source, $field: int) 
         return | from $source 
              | stats count by $field 
              | sort – count 
              | head 1 

    Variables are defined with a preceding “$”. $source passes in the SPL2 search name to perform the custom command upon, and $field is the value to split by in the stats invocation. $field, in this case, is required to be an integer value. 

    Custom Data Types 

    By default, most data types in Splunk are “loosely typed”, which allows more flexibility in search, although SPL and SPL2 are both intuitive enough at inferring when a user defines broad data types such as integers or strings. 

    SPL2 allows for definition of “stronger” data types as needed. Here’s an example taken from the Splunk Docs, where id_number is a data type defined as a number between 100000 and 999999: 

    type id_number = int where ($value BETWEEN 100000 AND 999999) 

    Once again, “$” is used before a variable. Types can be used in a Boolean context for validation: 

    | eval type_check_results = if(customer IS id_number, true, false) 

    Remember that in SPL2, Boolean return values do not include parentheses. 

    SPL2 Modules 

    Arguably the most significant feature introduced by SPL2 are modules – files that can contain several SPL2 statements (aka searches, or anything that refers to results from data). Modules allow users to view and access results from multiple searches without the need for multiple browser tabs, and the ability to import and export statements from one module to another.  

    Here is an image of the interface from the Splunk Docs. One can see multiple search statements listed within the left column (search, search2, and search 3), as well as the stats output from the selected search2 in the interface’s bottom half. 

    There are two important things to know about leveraging search functionality with SPL2 modules: 

    1. Indexes must be imported to make them available in your search. Splunk will do this by default when specifying indexes during UI creation of a new module, but to add any others, the syntax is as follows: 
    import myindex from ~indexes 
    1. All searches are referenced by name for ease of usage in other modules (and is the same principle as defining a search variable in the custom commands section). The syntax is as follows for a search referred to as “my_search”: 
    $my_search = index=myindex status IN (100, 200)  

    Referring to searches by name effectively allow base searches to run within SPL2 modules, as they can be invoked in other child or parallel searches: 

    $my_search2 = from $my_search search category IN (“handshake”, “encrypt”) | stats count by status 

    Items from an SPL2 module – searches, functions, or data types – can be exported as SPL2 views and shared with other users, which can then be imported into other SPL2 modules. 

    These are just a small selection of features introduced in Splunk’s next evolution of search, SPL2. Others include JSON specific and Lambda functions (which allow passing functions as an argument into other functions) for improved JSON normalization, robust access control, and masking data at search time – an simplified evolution of the concept Zubair Rauf and I wrote about to do this at index time.  

    For more information and updates to features and availability, be sure to refer to the latest Splunk Docs on SPL2. Happy Splunking! 

    About the Author

    Eric Levy is a Splunk Core Certified Consultant who joined the TekStream team in July 2022. Eric’s background and eagerness to learn makes him excited to unlock the data possibilities Splunk has to offer its clients. Eric’s portfolio of projects makes him well adapted to time management and a diverse array of technical situations and has since expanded his horizons into Enterprise Security engagements as well as a full-time member of the IRS Splunk team.

    Eric resides in Arlington, Virginia and is a proud Virginia Tech graduate. In his free time, he continues to pursue his love of music.

  • Cost Optimization Techniques for Splunk Cloud at Enterprise Scale 

    Cost Optimization Techniques for Splunk Cloud at Enterprise Scale 

    By Somesh Soni, Splunk Architect

    Splunk Cloud delivers powerful analytics, operational visibility, and security intelligence without the overhead of managing infrastructure. But at enterprise scale where daily ingestion volume and workload is very high, cost optimization becomes a strategic priority. 

    Splunk Cloud licensing primarily offers two models: Ingest-based pricing (measured by GB/day of ingested data) and Workload-based pricing (measured by Splunk Virtual Compute/SVC units based on compute resources) 

    Organizations often assume Splunk cost equals “more data = more value.” The most mature Splunk environments are not the ones ingesting the most data. They are the ones ingesting the right data — and using compute efficiently.  

    At TekStream, we routinely help enterprises reduce Splunk Cloud ingest by 10–30% without sacrificing visibility. This article outlines field-proven techniques to control cost while preserving security and operational outcomes. 

    Understanding Splunk Cloud Cost Drivers 

    Before optimizing, it’s critical to understand what drives Splunk Cloud spend. 

    In Splunk Cloud, your spend is primarily influenced by: 

    With Ingest-Based Licensed 

    • Daily ingest volume (GB/day) 
    • Retention duration (hot/warm storage) 
    • Premium apps such as Splunk Enterprise Security or Splunk IT Service Intelligence 

    If You Are SVC-Based Licensed 

    • Search workload (scheduled + ad hoc) 
    • Data model acceleration 
    • Dashboard usage patterns 
    • Indexing overhead 
    • Premium app workload 
    • Ingest volume (still impacts infrastructure footprint) 

     
    More data = more indexing work + more searchable data = more compute demand. The key is to attack cost at multiple layers: source, ingestion pipeline, indexing strategy, and search behavior. 

    Optimization techniques discussed below reduce both ingest consumption AND SVC usage. 

    1. Eliminate “Noise Before License” 

    One of the most common things we see in enterprise environments is “just in case” logging. It adds up quickly. 

    • Debug logs left enabled. 
    • Verbose audit categories turned on everywhere. 
    • Health-check events logged every few seconds. 

    Step 1: Perform Ingest Profiling 

    The most reliable way to see what your actual licensing is via: (can be expensive, use smaller time-range to start with): 

    index=_internal source=*license_usage.log type=Usage 

    | stats sum(b) as bytes by idx, st 

    | eval GB=round(bytes/1024/1024/1024,2) 

    | sort -GB 

    Then ask simple questions: 

    • Is this data used in alerts/reports/dashboards? 
    • Is it required for compliance? 
    • Does it map to CIM for security analytics? 

    If the answer is “no” across the board, you likely have an optimization opportunity. 

    Step 2: Filter at the Source 

    Filtering after ingestion doesn’t save license. Filtering at the source does. Many teams assume they’ll “just filter it later in SPL.” But by the time it reaches Splunk Cloud, you’ve already paid for it. Upstream filtering is where real savings happen. 

    Examples: 

    • Disable verbose debug logging 
    • Reduce Windows Event ID collection scope 
    • Exclude application health-check endpoints 

    Step 3: Use Ingest Processor (Cloud-Native Filtering) 

    Splunk Ingest Processor is cloud-based services that can optimizes data ingestion by filtering, masking, enriching, and routing data to Splunk Cloud, S3, or Splunk Observability before indexing, reducing costs and improving performance. 

    Common use cases: 

    • Drop health-check URLs 
    • Remove successful login noise 
    • Exclude low-value audit events 
    • Condense large static part of raw event to a code that can later be expanded by a lookup table. 

    Field Insight: We frequently see 10–15% of ingest volume from debug-level logs accidentally enabled in production. Reduced index size = faster queries so saves on SVC usage as well. 

    2. Optimize Indexing & Retention Strategy 

    Another common pattern: “Let’s keep everything for a year.”  

    It may sound safe but can be expensive. A better approach would be is tiered retention. Instead of storing everything for 365 days, create index-level retention aligned with business value. When retention is rationalized, storage costs decrease and performance improves. 

    Tiered Retention Model 

    Data Type Recommended Retention 
    Business Critical/Compliance data (Security logs) 180–365 days 
    Firewall traffic 90–180 days 
    Debug logs 7–30 days 
    Metrics 30–90 days 

    Ingest-Based Impact: 

    • Lower storage footprint. 

    SVC Impact: 

    • Smaller searchable footprint 
    • Faster tstats 
    • Reduced bucket scanning 
    • Lower acceleration footprint 

    TekStream Best Practice: Align retention with compliance frameworks (PCI, HIPAA, SOX) rather than applying blanket retention. 

    3. Reduce Search & Compute Overhead (Critical for SVC based license, useful anyways) 

    In Splunk Cloud, search efficiency impacts performance and overall SVC usage. A frequently running bad search can spike up the resource 

    Common Enterprise Mistakes 

    • Running scheduled searches every 1 or 5 minutes unnecessarily 
    • Overusing accelerated data models 
    • Poorly written SPL (no base search constraints, wildcard index searches (index=*) 
    • Use of expensive commands such as transaction, dedup, join. 
    • Dashboard with multiple panels but not using post-process 

    Optimize Scheduled Searches 

    Run following search: 

    | rest /servicesNS/-/-//saved/searches 

    | table title cron_schedule is_scheduled disabled 

    Look for: 

    • Redundant reports: Multiple scheduled searches performing nearly similar function. 
    • Orphaned searches: No owner. 
    • Overlapping time ranges: Frequency and time-range of scheduled search do not match. 
    • Unused alerts: Alerts scheduled but not performing any actions. 

    Data Model Acceleration Strategy 

    In environments using Splunk Enterprise Security: 

    • Accelerate only required data models 
    • Reduce acceleration time windows 
    • Ensure summaries are properly sized 

    Improper acceleration can increase storage and SVC usage significantly. 

    4. Leverage Summary Indexing, Metrics and Ingestion Processor 

    Not all use-cases required raw data. Instead of storing high-volume raw logs long-term, you can create summaries of the raw data and store the low-volume summaries for longer duration: 

    Example: 

    1. Keep raw logs for 30 days 
    1. Create daily summary jobs 
    1. Store summaries for 365 days 

    Example: 

    index=network_logs 

    | stats count by src_ip dest_ip 

    | collect index=network_summary 

    You preserve analytics while reducing storage. 

    Use Metrics Indexes for High-Volume Data 

    Splunk metrics indexes provide significantly faster search performance (up to 500x faster) and lower storage costs compared to traditional event indexes. By using a specialized structure, they optimize storage and retrieval for high-volume numerical metrics data. 

    Metrics indexes: 

    • Consume less storage 
    • Improve query speed 
    • Reduce compute usage 

    Ideal for: 

    • Infrastructure telemetry 
    • VM performance data 
    • Cloud resource utilization 

    Use Ingest Processor to enrich events 

    Using Splunk Ingest Processor’s data enrichment feature, you can move the frequently used calculations and fields extraction to ingest processor to have them available as indexed-time field.  

    This helps tremendously with queries that you run multiple time a day. It also enables you to utilize “tstats” command (wherever possible) for even better performance (significantly less CPU, memory, and search time) when using indexed-time available fields.  

    Field Insight: By implementing summary indexing, use of Metrics index and implementing Ingestion processor enrichment reduces both: 

    • Ingest footprint 
    • Search workload compute 

    5. Azure & M365 Ingestion Optimization 

    Cloud-native log sources can grow quickly if left ungoverned. Many Splunk Cloud customers commonly over-ingest from Azure and Microsoft 365. 

    Common Over-Collection Areas 

    • Azure Sign-In logs (all categories) 
    • Exchange Online verbose mailbox audit 
    • Defender raw telemetry 

    Instead: 

    • Enable only security-relevant categories 
    • Avoid duplicating data already in another tool 
    • Normalize to CIM before scaling ingest 

    Field Insight: We reduced one customer’s Azure ingest by 25% by disabling redundant diagnostic categories. Reduced logging also reduced SVC usage by positively impacting expensive searches and data acceleration load. 

    6. Palo Alto Ingestion Optimization 

    Palo Alto Networks firewalls generate extremely high log volume — especially: 

    • Traffic logs (every session) 
    • Threat logs (including informational alerts) 
    • URL filtering logs 
    • WildFire logs 
    • GlobalProtect logs 

    Instead of forwarding everything: 

    • Drop informational threat logs 
    • Log denied sessions only 
    • Forward only internet-bound or sensitive zone traffic 
    • Reduce verbosity on high-volume rules 
    • Use selective log forwarding profiles 

    Field Insight: We’ve seen Palo Alto filtering alone reduce ingest by 10–40% in large environments. It also helps reduce SVC usage by positively impacting expensive searches and data acceleration load. 

    7. Architecture & SVC Governance in Splunk Cloud 

    While infrastructure is managed by Splunk, architecture decisions still impact cost. 

    Key Considerations 

    • Avoid unnecessary data duplication 
    • Ensure proper load balancing 
    • Validate forwarder compression enabled 
    • Remove unused apps 
    • Review role-based search limits 
    • Monitor concurrency usage 
    • Size your environment to match your current and future need and don’t overprovision 

    Premium apps like Splunk Enterprise Security should be carefully sized to match ingest patterns. 

    8. Adopt a Continuous Optimization Model 

    Cost control is not a one-time project. Be proactive rather than reactive. 

    At TekStream, we recommend a quarterly optimization cycle to: 

    • Review ingest, new and existing 
    • Monitor SVC workload trends  
    • Validate retention alignment 
    • Review scheduled searches 
    • Review Dashboard usage frequency  
    • Evaluate CIM coverage vs ingest cost 

    Real-World Impact 

    Across large enterprises (1–5 TB/day ingest): 

    Optimization Lever Typical Reduction 
    Source filtering 10–20% 
    Retention tuning 5–15% 
    Log trimming 10–30% 
    Summary indexing 5–10% 
    Duplicate removal 3–8% 
    Search optimization (SVC) 10-25% 

    Combined impact often exceeds 10–30% license reduction potential. 

    Value vs Cost: Finding the Balance 

    Cost reduction must never reduce value and visibility. 

    Before dropping data, ask: 

    • Is this needed for incident response? 
    • Is it required for compliance? 
    • Does Splunk ES rely on it for detection logic? 
    • Is it mapped to CIM? 
    • Is it driving critical alerts/reports/dashboards? 

    If yes — optimize, don’t eliminate. 

    Final Thoughts 

    Splunk Cloud cost optimization is not about cutting data blindly. It is about aligning ingest with business value. Organizations that mature in this space: 

    • Improve search performance 
    • Reduce license growth 
    • Lower SVC consumption 
    • Strengthen governance 
    • Increase SOC efficiency 

    At TekStream, we view Splunk not as a cost center—but as a strategic intelligence platform. When properly optimized, it scales efficiently while delivering measurable security and operational outcomes. 

    If your enterprise hasn’t reviewed ingest and retention in the last six months, there is almost certainly opportunity on the table.

    Ready to optimize your Splunk Cloud environment and reduce costs? Explore TekStream’s Splunk services.

    About the Author

    Somesh Soni is an experienced IT professional with over 20 years of experience in the information technology realm, with over 13 years of experience in Splunk. Over his career, he’s been acting as Principal Splunk Consultant, Team Lead, Splunk Architect and Splunk Admin/Developer. Somesh has been familiar with Splunk since version 4.3 and managed smaller environments (few GB) to bigger environments (100’s of TB). Somesh has been one of the top contributors in Splunk Community, multiple time Splunk Trust and Splunk MVP during his career. Somesh is Splunk Certified Core Consultant and is accredited Splunk ES/ITSI implementation. Somesh holds a bachelor’s in engineering in Computer Science from Pt. Ravishankar Shukla University, India. Somesh currently resides in Celina, Texas.

  • Splunk’s New SDK Explained for Experienced Developers 

    Splunk’s New SDK Explained for Experienced Developers 

    By David Burns, Team Lead, Automation Engineering

    A Faster, Cleaner Way to Build SOAR Apps 

    For seasoned developers working with Splunk SOAR, app development has historically not been exactly smooth: brittle JSON metadata, limited validation, UI-dependent testing, and packaging workflows that felt increasingly out of step with modern software engineering practices. The traditional Phantom-era model got the job done, but those familiar pain points… 

    Splunk’s new SOAR SDK represents a purposeful evolution rather than a radical reinvention. It does not change the traditional template pattern that we know and love, or how apps ultimately behave inside SOAR. Instead, it modernizes how apps are built, shifting development left with better tooling, stronger guarantees, and workflows that align with how most engineering teams already operate. 

    For developers who already know the old way well, the value of the SDK becomes obvious once you frame it correctly: not about learning SOAR again but finally treating SOAR apps like real software projects. 

    What the New SOAR SDK Is (and Is Not) 

    At a high level, the new SDK provides: 

    • A CLI-driven development workflow 
    • Schema-backed definitions for apps, actions, and assets 
    • Local validation and linting 
    • A standardized, opinionated project structure 

    What it does not do: 

    • Break or deprecate existing apps 
    • Change how SOAR executes actions 
    • Replace Python connectors with a new runtime 
    • Eliminate the need to understand SOAR internals 

    The SDK sits above the existing app model. You still deploy a standard SOAR app package. The difference is that you arrive at that package through a repeatable, validated, developer-friendly process. 

    Traditional SOAR App Development: A Quick Reality Check 

    Experienced developers will recognize this workflow immediately: 

    1. Generate an app skeleton. 
    1. Manually edit app and actions in the json, and related metadata 
    1. Write Python connector logic 
    1. Zip the app 
    1. Upload it into SOAR 
    1. Discover missing fields, typos, or schema errors at runtime 
    1. Repeat 

    This model works, but it places validation very late in the cycle. Many issues only surface once the app is installed, actions are executed, or assets are configured in the UI. Over time, as apps grow more complex, metadata drift and undocumented assumptions become common—especially in teams with multiple developers. 

    The new SDK directly addresses these friction points. 

    Key Differences Between the Old Model and the New SDK 

    Below is a side-by-side breakdown of what has materially changed, focusing on areas that matter to experienced developers. 

    1. Project Structure and Organization 

    • Old approach 
    • Flat or semi-structured directories 
    • Metadata and logic intermingled 
    • Conventions enforced socially rather than technically 
    • New SDK 
    • Clearly defined project layout 
    • Explicit separation of metadata, connector logic, and configuration 
    • SDK-generated scaffolding that enforces consistency 

    Why it matters: 
    Larger teams benefit immediately. New contributors can understand an app’s layout without tribal knowledge, and long-lived apps remain readable years later. 

    2. Schema-Driven Definitions 

    • Old approach 
    • JSON files edited by hand 
    • Minimal validation before deployment 
    • Errors often discovered only after installation 
    • New SDK 
    • Strongly defined schemas for apps, actions, and assets 
    • Local validation catches missing fields, invalid types, and structural errors 
    • Clear, actionable error messages 

    Why it matters: 
    This is arguably the biggest improvement. Schema enforcement eliminates an entire class of runtime failures that previously required UI testing to uncover. 

    3. CLI-First Development Workflow 

    • Old approach 
    • App creation and iteration tightly coupled to the SOAR UI 
    • Manual packaging steps 
    • Limited automation support 
    • New SDK 
    • CLI commands for project creation, validation, and packaging 
    • Repeatable build steps 
    • Natural fit for automation and scripting 

    Why it matters: 
    The SDK finally makes SOAR app development compatible with CI/CD pipelines, code reviews, and automated quality gates, something many teams previously bolted on manually. 

    4. Local Validation and Early Feedback 

    • Old approach 
    • Validation happens late 
    • Testing often requires a live SOAR instance 
    • Debugging involves repeated upload/install cycles 
    • New SDK 
    • Local validation before packaging 
    • Structural and schema errors caught immediately 
    • Faster feedback loops 

    Why it matters: 
    Developers spend less time context-switching into the SOAR UI and more time writing reliable code. This is especially valuable when working on shared libraries or foundational connectors. 

    5. Maintainability at Scale 

    • Old approach 
    • Apps evolve organically 
    • Metadata inconsistencies accumulate 
    • Harder to enforce standards across teams 
    • New SDK 
    • Opinionated structure encourages uniformity 
    • Easier to compare apps and reuse patterns 
    • Better foundation for internal frameworks or shared tooling 

    Why it matters: 
    This alone can justify adopting the SDK for new development and maintenance of multiple SOAR apps 

    What Has Not Changed 

    It is equally important to understand what remains the same: 

    • Apps still run inside SOAR exactly as before 
    • Connectors still written in Python 
    • Actions, assets, and playbooks behave the same way 
    • Existing apps continue to work without modification 

    This is not a breaking change but an evolution. There is no forced migration timeline. 

    Practical Implications for Existing App Portfolios 

    For teams with established SOAR apps in production, the SDK introduces a strategic decision rather than an immediate requirement. 

    You likely do not need to: 

    • Rewrite stable, low-churn apps 
    • Migrate legacy apps solely for parity 
    • Change existing deployment processes overnight 

    You should strongly consider the SDK when: 

    • Building new apps 
    • Performing major refactors 
    • Standardizing development across teams 
    • Introducing CI/CD or automated testing 
    • Onboarding new developers 

    Many teams will find a hybrid approach effective: legacy apps remain untouched, while all new development uses the SDK going forward. 

    Why This Matters Long-Term 

    From a platform perspective, the SDK signals Splunk’s intent to treat SOAR app development as a first-class engineering discipline rather than a niche, UI-centric workflow. 

    For developers, this brings several long-term benefits: 

    • Fewer production surprises 
    • Clearer ownership boundaries 
    • Easier collaboration 
    • Better alignment with modern DevOps practices 

    In other words, the SDK reduces operational risk without changing the mental model of how SOAR works. 

    Final Takeaway 

    If you are already comfortable building SOAR apps the traditional way, the new SDK does not ask you to relearn SOAR. It allows you to stop compensating for tooling gaps in the traditional method of development. 

    The core value proposition is simple: the same apps, built with far better guarantees. 

    For experienced developers, adoption becomes less a question of if but when. 

    Ready to accelerate your Splunk SOAR development and streamline security automation projects? Explore professional Splunk services and expert support from TekStream.

    About the Author

    David Burns is a security engineer with experience working with Splunk Enterprise Security and Splunk SOAR (formerly Phantom) for a large fortune 200 bank. Before that he was a System Security Engineer working on the automation of security testing of OT systems.

    He brings his 20+ years programming background to use SDLC in rapid development of playbooks, custom functions, and more leading to modularity, re-use in design, and better long-term maintenance. For example, creating deeper integration for escalation through Slack and creating EDL management for multiple clients.


    At TekStream, he developed the slack escalation methodology that notifies customers of events that need their attention as well as a way of process for generating and updating EDLs within Splunk.