Splunk Search

How to optimize a subsearch with a wide range?

lmzheng
Explorer

I have a subsearch that I use to determine the first occurrence of the issue logged. I currently have an earliest=-4d, because the report runs every 15 minutes. If I were to extend the range to 365 days, the search would not be able to update efficiently.

Since the data remains the same before the current day, is it possible is cache this information so the search does not delay?

Thank you,
Lee

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

This sounds like a job for Summary Index.

Run your reports every 15 minutes and save results in a summary index. Your search to find the first occurrence need only scan the summary rather than the raw data and should be much faster.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

This sounds like a job for Summary Index.

Run your reports every 15 minutes and save results in a summary index. Your search to find the first occurrence need only scan the summary rather than the raw data and should be much faster.

---
If this reply helps you, Karma would be appreciated.
0 Karma

lmzheng
Explorer

Is this option available for Splunk Cloud or only Splunk Enterprise?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Summary indexing is available in both Splunk Enterprise and Splunk Cloud.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

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 ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...