Splunk · Arazzo Workflow

Splunk Provision an Index and Attach a Monitor Input

Version 1.0.0

Create an event index, verify it, then create a file monitor input that feeds it.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub AnalyticsData AnalysisLoggingMachine DataMonitoringObservabilityPlatformSecuritySIEMArazzoWorkflows

Provider

splunk

Workflows

provision-index-and-monitor
Create an index, confirm it, attach a monitor input, and confirm the input.
Creates a new event index, fetches it to verify, creates a monitor input targeting that index, and fetches the monitor input to confirm its configuration.
4 steps inputs: frozenTimePeriodInSecs, indexName, maxTotalDataSizeMB, monitorPath, sourcetype outputs: indexName, monitorIndex, monitorName
1
createIndex
Create a new event index with the supplied retention and size settings.
2
verifyIndex
Fetch the newly created index to confirm it exists and read back its configuration.
3
createMonitor
Create a file or directory monitor input that ingests new data into the index just provisioned.
4
verifyMonitor
Fetch the monitor input to confirm it is configured against the new index.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Splunk Provision an Index and Attach a Monitor Input
  summary: Create an event index, verify it, then create a file monitor input that feeds it.
  description: >-
    A data-onboarding pattern. A new event index is created and read back to
    confirm its configuration, then a file or directory monitor input is created
    that ingests data into that index, and the monitor is read back to confirm
    it is wired up. Every step spells out its request inline so the flow can be
    read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: dataInputsApi
  url: ../openapi/splunk-data-inputs-api-openapi.yml
  type: openapi
- name: indexApi
  url: ../openapi/splunk-index-api-openapi.yml
  type: openapi
workflows:
- workflowId: provision-index-and-monitor
  summary: Create an index, confirm it, attach a monitor input, and confirm the input.
  description: >-
    Creates a new event index, fetches it to verify, creates a monitor input
    targeting that index, and fetches the monitor input to confirm its
    configuration.
  inputs:
    type: object
    required:
    - indexName
    - monitorPath
    properties:
      indexName:
        type: string
        description: Name for the new index (e.g. "my_new_index").
      maxTotalDataSizeMB:
        type: integer
        description: Maximum total size of the index in MB.
      frozenTimePeriodInSecs:
        type: integer
        description: Seconds until data is frozen out of the index.
      monitorPath:
        type: string
        description: The file or directory path to monitor (e.g. "/var/log/syslog").
      sourcetype:
        type: string
        description: Source type to assign to data from the monitor input.
  steps:
  - stepId: createIndex
    description: >-
      Create a new event index with the supplied retention and size settings.
    operationId: createIndex
    parameters:
    - name: output_mode
      in: query
      value: json
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        name: $inputs.indexName
        datatype: event
        maxTotalDataSizeMB: $inputs.maxTotalDataSizeMB
        frozenTimePeriodInSecs: $inputs.frozenTimePeriodInSecs
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      name: $response.body#/name
      datatype: $response.body#/content/datatype
  - stepId: verifyIndex
    description: >-
      Fetch the newly created index to confirm it exists and read back its
      configuration.
    operationId: getIndex
    parameters:
    - name: name
      in: path
      value: $steps.createIndex.outputs.name
    - name: output_mode
      in: query
      value: json
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      maxTotalDataSizeMB: $response.body#/content/maxTotalDataSizeMB
      disabled: $response.body#/content/disabled
  - stepId: createMonitor
    description: >-
      Create a file or directory monitor input that ingests new data into the
      index just provisioned.
    operationId: createMonitorInput
    parameters:
    - name: output_mode
      in: query
      value: json
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        name: $inputs.monitorPath
        index: $steps.createIndex.outputs.name
        sourcetype: $inputs.sourcetype
        disabled: false
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      name: $response.body#/name
  - stepId: verifyMonitor
    description: >-
      Fetch the monitor input to confirm it is configured against the new index.
    operationId: getMonitorInput
    parameters:
    - name: name
      in: path
      value: $steps.createMonitor.outputs.name
    - name: output_mode
      in: query
      value: json
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      index: $response.body#/content/index
      sourcetype: $response.body#/content/sourcetype
  outputs:
    indexName: $steps.createIndex.outputs.name
    monitorName: $steps.createMonitor.outputs.name
    monitorIndex: $steps.verifyMonitor.outputs.index

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/splunk-provision-index-and-monitor-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.