Skip to content
For LLMsView as Markdown·

Splunk

Search, index, and analyze machine data with the Splunk REST API.

DetailValue
CategoryMonitoring
Base URLhttps://splunk.example.com:8089
AuthenticationBearer Token
Endpoints8
Connector keysplunk

Using Splunk in a workflow

  1. Go to Connections and click New Connection.
  2. Pick Splunk from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
POST /services/search/jobsCreate a search job
GET /services/search/jobs/{search_id}Get search job status
GET /services/search/jobs/{search_id}/resultsGet search results
POST /services/search/jobs/oneshotRun oneshot search
POST /services/receivers/simpleIndex an event
GET /services/data/indexesList indexes
GET /services/saved/searchesList saved searches
GET /services/server/infoGet server info

Each endpoint is documented in full below. Use the outline on the right to jump to one.

POST /services/search/jobs

Create a search job

DetailValue
Operation IDmonitoring.createSearchJob
MethodPOST
Path/services/search/jobs

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Splunk connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.createSearchJob.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Splunk API reference.

GET /services/search/jobs/{search_id}

Get search job status

DetailValue
Operation IDmonitoring.getSearchJob
MethodGET
Path/services/search/jobs/{search_id}

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Splunk connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.getSearchJob.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Splunk API reference.

GET /services/search/jobs/{search_id}/results

Get search results

DetailValue
Operation IDmonitoring.getSearchResults
MethodGET
Path/services/search/jobs/{search_id}/results

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Splunk connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.getSearchResults.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Splunk API reference.

POST /services/search/jobs/oneshot

Run oneshot search

DetailValue
Operation IDmonitoring.oneshotSearch
MethodPOST
Path/services/search/jobs/oneshot

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Splunk connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.oneshotSearch.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Splunk API reference.

POST /services/receivers/simple

Index an event

DetailValue
Operation IDmonitoring.indexEvent
MethodPOST
Path/services/receivers/simple

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Splunk connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.indexEvent.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Splunk API reference.

GET /services/data/indexes

List indexes

DetailValue
Operation IDmonitoring.listIndexes
MethodGET
Path/services/data/indexes

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Splunk connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.listIndexes.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Splunk API reference.

GET /services/saved/searches

List saved searches

DetailValue
Operation IDmonitoring.listSavedSearches
MethodGET
Path/services/saved/searches

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Splunk connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.listSavedSearches.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Splunk API reference.

GET /services/server/info

Get server info

DetailValue
Operation IDmonitoring.getServerInfo
MethodGET
Path/services/server/info

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Splunk connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.getServerInfo.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Splunk API reference.