Splunk Search

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

arunslal
Loves-to-Learn Lots

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

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
Loves-to-Learn Lots

Hi, yes. UI returns results on screen.

0 Karma
Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Building Momentum: Splunk Developer Program at .conf25

At Splunk, developers are at the heart of innovation. That’s why this year at .conf25, we officially launched ...