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!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...