> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/analytics-monitoring/splunk.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Splunk

Splunk collects and searches machine data. Run search jobs and saved searches, manage indexes, data inputs, KV store collections, apps, users and roles.

![Splunk logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-87e739c2d7b358347bc7fdd6ee0fa1bfe4d12416%2Fsplunk.png?alt=media)

|                    |                                                                                              |
| ------------------ | -------------------------------------------------------------------------------------------- |
| **Category**       | [Analytics and monitoring](https://docs.fastn.ai/connectors/catalog/analytics-monitoring.md) |
| **Website**        | [splunk.com](https://splunk.com)                                                             |
| **Authentication** | Host and access token                                                                        |
| **Slug**           | `splunk`                                                                                     |
| **On fastn.ai**    | [Embed Splunk in your product](https://fastn.ai/integrations/splunk)                         |

## Setup

Your customers enter their host and access token for Splunk when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Splunk from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Splunk**.
2. Select **Connect** on the Splunk card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Splunk's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Batch Save KV Store Data</td><td><code>batchSaveKvData</code></td><td>Insert or update multiple records in one call. POST storage/collections/data/{collection}/batch_save with a JSON array body. Returns an array of saved _keys.</td></tr><tr><td>Control Search Job</td><td><code>controlSearchJob</code></td><td>Perform a control action on a search job (pause, unpause, finalize, cancel, touch, setttl, setpriority, enablepreview, disablepreview, save, unsave). POST search/jobs/{sid}/control.</td></tr><tr><td>Create App</td><td><code>createApp</code></td><td>Create/install a new app. POST apps/local with a name.</td></tr><tr><td>Create Index</td><td><code>createIndex</code></td><td>Create a new data index. POST data/indexes with a name.</td></tr><tr><td>Create KV Store Collection</td><td><code>createKvCollection</code></td><td>Create a new KV store collection definition. POST storage/collections/config with a name.</td></tr><tr><td>Create Monitor Input</td><td><code>createMonitorInput</code></td><td>Create a file/directory monitor data input. POST data/inputs/monitor with a name (the path to monitor).</td></tr><tr><td>Create Role</td><td><code>createRole</code></td><td>Create a new authorization role. POST authorization/roles with a name.</td></tr><tr><td>Create Saved Search</td><td><code>createSavedSearch</code></td><td>Create a new saved search. POST saved/searches with name and search string.</td></tr><tr><td>Create Search Job</td><td><code>createSearchJob</code></td><td>Create a new search job. POST search/jobs with a search string (SPL). Returns the search job ID (sid).</td></tr><tr><td>Create User</td><td><code>createUser</code></td><td>Create a new user. POST authentication/users with name, password, and roles.</td></tr></tbody></table>

<details>

<summary>View 50 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Delete All KV Store Data</td><td><code>deleteAllKvData</code></td><td>Delete all records in a KV store collection. DELETE storage/collections/data/{collection}.</td></tr><tr><td>Delete App</td><td><code>deleteApp</code></td><td>Uninstall/delete an app by name. DELETE apps/local/{name}.</td></tr><tr><td>Delete Index</td><td><code>deleteIndex</code></td><td>Delete a data index by name. DELETE data/indexes/{name}.</td></tr><tr><td>Delete KV Store Collection</td><td><code>deleteKvCollection</code></td><td>Delete a KV store collection definition. DELETE storage/collections/config/{collection}.</td></tr><tr><td>Delete KV Store Record</td><td><code>deleteKvRecord</code></td><td>Delete a single record from a KV store collection by key. DELETE storage/collections/data/{collection}/{key}.</td></tr><tr><td>Delete Monitor Input</td><td><code>deleteMonitorInput</code></td><td>Delete a monitor data input by name (path). DELETE data/inputs/monitor/{name}.</td></tr><tr><td>Delete Role</td><td><code>deleteRole</code></td><td>Delete an authorization role by name. DELETE authorization/roles/{name}.</td></tr><tr><td>Delete Saved Search</td><td><code>deleteSavedSearch</code></td><td>Delete a saved search by name. DELETE saved/searches/{name}.</td></tr><tr><td>Delete Search Job</td><td><code>deleteSearchJob</code></td><td>Delete a search job and free its resources. DELETE search/jobs/{sid}.</td></tr><tr><td>Delete User</td><td><code>deleteUser</code></td><td>Delete a user by username. DELETE authentication/users/{name}.</td></tr><tr><td>Dispatch Saved Search</td><td><code>dispatchSavedSearch</code></td><td>Run (dispatch) a saved search, creating a new search job. POST saved/searches/{name}/dispatch. Returns the sid.</td></tr><tr><td>Get App</td><td><code>getApp</code></td><td>Get a specific installed app by name. GET apps/local/{name}.</td></tr><tr><td>Get Fired Alerts For Saved Search</td><td><code>getFiredAlertsForSavedSearch</code></td><td>Get fired alert instances for a specific saved search. GET alerts/fired_alerts/{name}.</td></tr><tr><td>Get Index</td><td><code>getIndex</code></td><td>Get a specific index by name. GET data/indexes/{name}.</td></tr><tr><td>Get KV Store Collection</td><td><code>getKvCollection</code></td><td>Get a specific KV store collection definition. GET storage/collections/config/{collection}.</td></tr><tr><td>Get KV Store Record</td><td><code>getKvRecord</code></td><td>Get a single record from a KV store collection by key. GET storage/collections/data/{collection}/{key}.</td></tr><tr><td>Get Role</td><td><code>getRole</code></td><td>Get a specific role by name. GET authorization/roles/{name}.</td></tr><tr><td>Get Saved Search</td><td><code>getSavedSearch</code></td><td>Get a specific saved search by name. GET saved/searches/{name}.</td></tr><tr><td>Get Saved Search History</td><td><code>getSavedSearchHistory</code></td><td>Get the list of search jobs created from a saved search. GET saved/searches/{name}/history.</td></tr><tr><td>Get Search Job</td><td><code>getSearchJob</code></td><td>Get the status and metadata of a specific search job by its sid. GET search/jobs/{sid}.</td></tr><tr><td>Get Search Job Events</td><td><code>getSearchJobEvents</code></td><td>Retrieve the raw events (untransformed) matched by a search job. GET search/jobs/{sid}/events.</td></tr><tr><td>Get Search Job Results</td><td><code>getSearchJobResults</code></td><td>Retrieve the transformed/final results of a completed search job. GET search/jobs/{sid}/results.</td></tr><tr><td>Get Search Job Summary</td><td><code>getSearchJobSummary</code></td><td>Get a field summary (field/value statistics) for a search job. GET search/jobs/{sid}/summary.</td></tr><tr><td>Get Server Health</td><td><code>getServerHealth</code></td><td>Get the deployment health report (splunkd health tree). GET server/health/splunkd.</td></tr><tr><td>Get Server Info</td><td><code>getServerInfo</code></td><td>Get general server/instance information (version, build, license, server roles, OS). GET server/info.</td></tr><tr><td>Get Server Settings</td><td><code>getServerSettings</code></td><td>Get server settings (ports, paths, session timeout, etc). GET server/settings.</td></tr><tr><td>Get User</td><td><code>getUser</code></td><td>Get a specific user by username. GET authentication/users/{name}.</td></tr><tr><td>HEC Send Event</td><td><code>hecSendEvent</code></td><td>Send a single event to Splunk via the HTTP Event Collector (HEC) on port 8088. POST services/collector/event. Uses the HEC token (auth.token) as 'Splunk &#x3C;token>'.</td></tr><tr><td>HEC Send Raw Event</td><td><code>hecSendRaw</code></td><td>Send raw (unstructured) data to Splunk via HEC on port 8088. POST services/collector/raw. Body is sent as plain text.</td></tr><tr><td>Insert KV Store Record</td><td><code>insertKvRecord</code></td><td>Insert a new record into a KV store collection. POST storage/collections/data/{collection} with a JSON body. Returns the generated _key.</td></tr><tr><td>List Alert Actions</td><td><code>listAlertActions</code></td><td>List all configured alert action types (email, webhook, script, etc). GET alerts/alert_actions.</td></tr><tr><td>List Apps</td><td><code>listApps</code></td><td>List all installed apps. GET apps/local.</td></tr><tr><td>List Capabilities</td><td><code>listCapabilities</code></td><td>List all available authorization capabilities. GET authorization/capabilities.</td></tr><tr><td>List Data Inputs</td><td><code>listDataInputs</code></td><td>List all data inputs across input types. GET data/inputs/all.</td></tr><tr><td>List Fired Alerts</td><td><code>listFiredAlerts</code></td><td>List all fired alert groups across saved searches. GET alerts/fired_alerts.</td></tr><tr><td>List Indexes</td><td><code>listIndexes</code></td><td>List all data indexes. GET data/indexes.</td></tr><tr><td>List KV Store Collections</td><td><code>listKvCollections</code></td><td>List all KV store collection definitions. GET storage/collections/config.</td></tr><tr><td>List KV Store Data</td><td><code>listKvData</code></td><td>Query/list all records in a KV store collection. GET storage/collections/data/{collection}. Returns a JSON array of records.</td></tr><tr><td>List Monitor Inputs</td><td><code>listMonitorInputs</code></td><td>List file/directory monitor data inputs. GET data/inputs/monitor.</td></tr><tr><td>List Roles</td><td><code>listRoles</code></td><td>List all authorization roles. GET authorization/roles.</td></tr><tr><td>List Saved Searches</td><td><code>listSavedSearches</code></td><td>List all saved searches. GET saved/searches.</td></tr><tr><td>List Search Jobs</td><td><code>listSearchJobs</code></td><td>List all current search jobs. GET search/jobs.</td></tr><tr><td>List TCP Inputs</td><td><code>listTcpInputs</code></td><td>List raw TCP data inputs. GET data/inputs/tcp/raw.</td></tr><tr><td>List Users</td><td><code>listUsers</code></td><td>List all users. GET authentication/users.</td></tr><tr><td>Update App</td><td><code>updateApp</code></td><td>Update settings of an installed app. POST apps/local/{name}.</td></tr><tr><td>Update Index</td><td><code>updateIndex</code></td><td>Update index settings. POST data/indexes/{name}.</td></tr><tr><td>Update KV Store Record</td><td><code>updateKvRecord</code></td><td>Replace an existing record in a KV store collection by key. POST storage/collections/data/{collection}/{key} with a JSON body.</td></tr><tr><td>Update Role</td><td><code>updateRole</code></td><td>Update an authorization role. POST authorization/roles/{name}.</td></tr><tr><td>Update Saved Search</td><td><code>updateSavedSearch</code></td><td>Update an existing saved search. POST saved/searches/{name} with fields to change (name cannot be changed).</td></tr><tr><td>Update User</td><td><code>updateUser</code></td><td>Update an existing user. POST authentication/users/{name}.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/analytics-monitoring/splunk.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
