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!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...