Reporting

How do I keep my saved search artifacts available longer?

chustar
Path Finder

I have some splunk dashboards and websites that are powered by a lot of aggregated data.

The data are presented in the form:

| Field1 | Field2 | ... | AvgValue1 | AvgValue2 | AllUniqueIds |

While a search like this works:

stats avg(Value1), avg(Value2), ..., list(UniqueId) by Field1, Field2, ...

In order to get our searches running as fast as possible, we process our data by first splitting this into two accelerated searches.

Accelerated_Search_A combines just the data:

| UniqueId | Value1 | Value2 | ... | AvgValue1 | AvgValue2 | ... | SumValue1 | SumValue2 | ... |

And Accelerated_Search_B just the metadata:

| UniqueId | Field1 | Field2 | ... |

These searches are then aggregated in a scheduled saved search Scheduled_Search:

 | savedsearch "Accelerated_Search_A" 
    | append [ savedsearch "Accelerated_Search_B"] 
    | stats list(UniqueId), avg(Value1), avg(Value2),... by Field1, Field2, ...

This works for now, however changing the Scheduled_Search from 14 days to two weeks changed how long it takes to run from is only limited to two weeks and increasing that to a month causes the search to take too long (from 30 minutes to about 4 hours).

Is there another way to increase how much data is available in our saved search?

0 Karma

somesoni2
Revered Legend

You should consider using summary indexing (with summary index having appropriate retention to cater all your time ranges) to store the aggregated search results to an index. More info on summary indexing here: http://docs.splunk.com/Documentation/Splunk/6.6.2/Knowledge/Usesummaryindexing

Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...