Splunk Enterprise

savedsearch vs macros for the amount of jobs that are produced in Splunk

robertlynch2020
Motivator

Hi

I have a question about using savedsearch vs macros for the amount of jobs that are produced in Splunk. I have a situation where we must run alerts every 1 minutes looking for issues, the SPL will call multiple other saved searches and then can call more saved searches etc... We have noticed that this sends the number of jobs very high in Splunk. The question is if we used macros and not saved searches would the number of jobs decrease?

Labels (1)
0 Karma
1 Solution

somesoni2
Revered Legend

Assuming the macros are also expanding to a SPL that is used as subsearch, the number of jobs created would be same.  Check if you can merge multiple searches together if they share same base search.

View solution in original post

somesoni2
Revered Legend

Assuming the macros are also expanding to a SPL that is used as subsearch, the number of jobs created would be same.  Check if you can merge multiple searches together if they share same base search.

Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...