View as Markdown
Splunk icon

Splunk ACTION

Create Event

Sends a new event to a specified Splunk index. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Splunk account once, then configure and run Create Event from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "splunk-create-event",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    splunk: { authProvisionId: "apn_xxxxxxx" },
    indexName: "Index Name",
    eventData: "Event Data",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Event inputs
Property Type Description
indexName Index Name string
The name of the Splunk index
Required Dynamic
eventData Event Data string
The data of the event to send to the Splunk index. Raw event text. This is the entirety of the HTTP request body
Required
source Source string
The source value to fill in the metadata for this input's events
Optional
sourcetype Sourcetype string
The sourcetype to apply to events from this input
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
splunk-create-event
Version
0.0.2
App
Splunk
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes