Getting Data In

Queue up thousands of searches from CLI?

ianmaddox4bookr
Explorer

I would like to queue up a large number of unique searches (approximately 500,000) to be run from the command line in a queue. Right now, they are going one at a time from a shell script and they're painfully slow. Is there any way to stick searches into the jobs list and retrieve their data later? Alternately, is there any other way to run massive numbers of searches in a batch?

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

The REST API lets you start a search and returns a job ID for later retrieval of the results, that way you could run several searches concurrently. I have not yet tried firing a large number of searches at once though, ymmv.

http://docs.splunk.com/Documentation/Splunk/5.0/RESTAPI/RESTsearches

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...