Getting Data In

Error checking/handling using the REST API

Chris_Olson
Splunk Employee
Splunk Employee

How is it possible through the REST api to figure out if an indexer is or was down during an export (query). The problem we would like to solve is: to ensure that a finished export contains all records. If an indexer was down during an export I assume that we are missing some data. In that case we need a possibility to figure this out somehow, because then, we need to re-start the export.

Tags (4)
0 Karma

gkanapathy
Splunk Employee
Splunk Employee

You can check the "messages" key in the job status results (what you get back when you query the http://localhost:8089/services/search/jobs/*search_id* REST endpoint for the job. This contains sets of messages grouped by priority, and within each of those, any messages generated by the search. You could also check the "searchProviders" key in the job status results and compare against a list of the desired indexers. "messages" appears not to be in the current documentation, but it does come back.

Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...