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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...