Splunk Search

Searching for period of months without rerunning search every month for complete timerange

igschloessl
Explorer

I have a search which counts all ids events of the last 12 months by the severity. This search needs really long to run. So I dont want to rerun it every month for the complete time range of 12 months. I would like to just add the last month and search this over 6 monts.

My actual search is following:

index=ids  earliest="-1year@month" latest="@month"
| fields severity | timechart count by severity span=1mon

 

Thank you in advance

Labels (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Create a summary index which you add to every month then query that index for longer periods

0 Karma
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...