Splunk Search

How to use the REST API to run a multisearch and stream the results back?

arunslal
Observer

Hi,

I am able to run normal search using rest API using below syntax:

 

https://SearchHead_host:8089/servicesNS/admin/search/search/jobs/export -d search=“search index%3D_internal | head 3” -d output_mode=csv/xml/json

 

But when I use a "MULTISEARCH" query, the search doesn't show any results.

Does anyone know how to overcome this?

Thanks,

Arun

Labels (1)
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Have you run the multisearch query from the GUI to verify it works?

---
If this reply helps you, Karma would be appreciated.
0 Karma

arunslal
Observer

Hi, yes. UI returns results on screen.

0 Karma
Get Updates on the Splunk Community!

Splunk Life | Happy Pride Month!

Happy Pride Month, Splunk Community! 🌈 In the United States, as well as many countries around the ...

SplunkTrust | Where Are They Now - Michael Uschmann

The Background Five years ago, Splunk published several videos showcasing members of the SplunkTrust to share ...

Admin Your Splunk Cloud, Your Way

Join us to maximize different techniques to best tune Splunk Cloud. In this Tech Enablement, you will get ...