Reporting

Is it possible to run a saved search once another saved search has finished running?

SirHill17
Communicator

Hello,

Is it possible to run a savedsearch once a first savedsearch has finished running?

I have a savedsearch which runs a script which will collect data and I would like to have this data display once collected. So I would like to have the second savedsearch to display the result once the first search has finished running.

Thanks for your help!

Cyril

0 Karma

somesoni2
SplunkTrust
SplunkTrust

You run your 2nd saved search from your script itself, in the end, using Splunk CLI OR REST API endpoint using curl.

Run search using Splunk CLI: http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/CLIsearchsyntax

Run search using curl-Rest API : http://answers.splunk.com/answers/8945/how-to-start-a-saved-search-using-rest-api.html

0 Karma

SirHill17
Communicator

Thanks, I will try to add the search on the script. Would it work if after that using the command | loadjob ?

0 Karma

somesoni2
SplunkTrust
SplunkTrust

I don't see a reason why it'll not run.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...