Splunk Search

Is there a search command to look up results from saved results?

monicato
Path Finder

Hi there!

Is there a search command that will allow me to look up results from a "saved result"? I'm looking for ways I could speed up my populating search. My populating search is taking too long to search and I was wondering if there's a way for me to have my search run before and save the results and just have my populating search read from the results. can anyone help? ~thanks!

1 Solution

ChrisG
Splunk Employee
Splunk Employee

Sounds as if you want summary indexing, see Use summary indexing for increased reporting efficiency in the Knowledge Manager Manual: "With summary indexing, you set up a search that extracts the precise information you want, on a frequent basis. Each time Splunk runs this search it saves the results into a summary index that you designate. You can then run searches and reports on this significantly smaller (and thus seemingly "faster") summary index."

View solution in original post

hexx
Splunk Employee
Splunk Employee

Although not quite the easiest command to use to instrument a dashboard (Ayn's answer is probably the most appropriate to that effect), I still want to mention the loadjob command, which does exactly what is stated in the original question : It loads up results from an existing search artifact when provided with the search ID.

monicato
Path Finder

Thanks! This is what i was originally asking for. 🙂

Ayn
Legend

You could also run saved searches regularly, and then load results from the last saved search. More information is available for instance here: http://splunk-base.splunk.com/answers/862/can-i-make-my-dashboards-load-faster-by-scheduling-the-sea...

And also the advanced XML module reference has information on how to use this by setting the useHistory parameter for the relevant modules you're using. This reference is available on your Splunk server, in http(s)://splunkserver:port/modules

ChrisG
Splunk Employee
Splunk Employee

Sounds as if you want summary indexing, see Use summary indexing for increased reporting efficiency in the Knowledge Manager Manual: "With summary indexing, you set up a search that extracts the precise information you want, on a frequent basis. Each time Splunk runs this search it saves the results into a summary index that you designate. You can then run searches and reports on this significantly smaller (and thus seemingly "faster") summary index."

monicato
Path Finder

Thanks! This does sound like what I wanted, I'll look into this!

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