Skip to navigation

Splunk

Connect your AI agents to Splunk.
Ready to connect

Connects with credentials the end user enters, such as an API key, so you don’t need to register an OAuth app.

Authentication: authentication token or username and password, with your Splunk management URL. See Magic Link for the runtime auth flow.

Sample use cases

  • Search for 500 errors from the checkout service in the last hour.
  • Create a saved search that alerts when failed logins spike.
  • Create an HTTP Event Collector token for a new application.

Available Tools

batch_save_kvstore_records

Insert or update many KV store documents in one call (JSON array body); include ‘_key’ to update an existing document.

control_search_job

Control a running search job: pause, unpause, finalize, cancel, touch, setttl, setpriority, save, or unsave.

create_auth_token

Create an authentication (JWT) token for a user.

create_eventtype

Create an event type. Requires a unique name and the defining search expression.

create_field_extraction

Create a field extraction. All of name, type (EXTRACT/REPORT), value, and stanza are required.

create_hec_token

Create an HTTP Event Collector token. Only the name is required. Reference indexes discoverable via list_indexes.

create_index

Create a data index. Only the name is required; datatype defaults to ‘event’.

create_kvstore_collection

Create a KV store collection in a namespace (owner/app).

create_lookup

Create a lookup-table definition. Only the name is required; type defaults to ‘file’.

create_macro

Create a search macro. Requires a name (with arg count in parentheses if it takes args) and the SPL definition.

create_saved_search

Create a saved search. Requires a unique name and the SPL.

create_search_job

Dispatch a new search job from SPL. Returns the job id (sid); poll with get_search_job and read output with get_search_results.

delete_auth_token

Delete (revoke) an authentication token by owner username.

delete_eventtype

Delete an event type by name. Use list_eventtypes to find names.

delete_field_extraction

Delete a field extraction by name. Use list_field_extractions to find names.

delete_fired_alerts

Delete one scheduler-fired alert record by its alert id (ids start with ‘scheduler__’; Splunk rejects records from a manual dispatch).

delete_hec_token

Delete an HTTP Event Collector token by name. Use list_hec_tokens to find names.

delete_index

Delete a data index by name. This removes the index and its data. Use list_indexes to find names.

delete_kvstore_collection

Delete a KV store collection (and all its records) by name in a namespace. Use list_kvstore_collections to find names.

delete_kvstore_record

Delete a single KV store document by its _key. Use query_kvstore_records to find keys.

delete_kvstore_records

Delete documents from a KV store collection matching an optional filter.

delete_lookup

Delete a lookup-table definition by name. Use list_lookups to find names.

delete_macro

Delete a search macro by name. Use list_macros to find names.

delete_saved_search

Delete a saved search by name. Use list_saved_searches to find names.

delete_search_job

Delete (cancel and remove) a search job by its id (sid). Use list_search_jobs to find the sid.

dispatch_saved_search

Run a saved search now, creating a new search job.

export_search

Run SPL and stream back matching results in one call without persisting a job.

get_alert_action

Get configuration for one alert action by name, e.g. ‘email’. Use list_alert_actions to find names.

get_app

Get an installed app by name, including its version and label. Use list_apps to find names.

get_dashboard

Get a dashboard/view by name, including its XML/definition. Use list_dashboards to find names.

get_eventtype

Get an event type by name, including its defining search. Use list_eventtypes to find names.

get_field_extraction

Get a field extraction by name, including its type and regex/stanza. Use list_field_extractions to find names.

get_fired_alerts_for_search

List the triggered-alert records for one saved search by name; each entry’s name is the alert id delete_fired_alerts takes.

get_hec_token

Get an HTTP Event Collector token by name, including its token value and index settings.

get_index

Get a data index by name, including retention and size settings. Use list_indexes to find names.

get_kvstore_collection

Get a KV store collection definition by name in a namespace (owner/app). Use list_kvstore_collections to find names.

get_kvstore_record

Get a single KV store document by its _key.

get_lookup

Get a lookup-table definition by name. Use list_lookups to find names.

get_macro

Get a search macro by name, including its definition. Use list_macros to find names.

get_role

Get a Splunk role by name, including its capabilities and index access. Use list_roles to find names.

get_saved_search

Get a saved search by name, including its SPL and schedule. Use list_saved_searches to find names.

get_saved_search_history

List the past search jobs dispatched from a saved search, by name. Use list_saved_searches to find names.

get_search_events

Get the raw matching events (pre-transformation) of a search job by its sid, with optional time-range and field filters.

get_search_job

Get the status and metadata of a search job by its id (sid). Use list_search_jobs or create_search_job to find the sid.

get_search_results

Get the transformed results of a completed search job by its sid.

get_search_results_preview

Get preview (partial) results of a still-running search job by its sid.

get_search_summary

Get the field summary (per-field statistics) for a search job by its sid.

get_search_timeline

Get the event-timeline buckets for a search job by its sid.

get_server_health

Get the splunkd health report (overall green/yellow/red and red/yellow feature counts).

get_server_info

Get deployment server info: version, build, GUID, OS, and hardware. Also used to validate connectivity.

get_server_settings

Get deployment server settings: ports, SPLUNK_DB path, SSL, and session timeout.

get_tag

Get a tag by name, including the field::value pairs it maps. Use list_tags to find names.

get_user

Get a Splunk user by username, including roles and email. Use list_users to find names.

insert_kvstore_record

Insert one document into a KV store collection (JSON body).

list_alert_actions

List available alert actions (email, webhook, script, …).

list_apps

List installed apps. Filter by name substring with ‘search’. Returns names used by get_app.

list_auth_tokens

List authentication (JWT) tokens. Filter by owner with ‘username’. Returns names used by delete_auth_token.

list_capabilities

List all capabilities available on the deployment (the permission atoms roles are built from).

list_dashboards

List dashboards/views. Filter by name substring with ‘search’. Returns names used by get_dashboard.

list_eventtypes

List event types. Returns names used by get_eventtype and update_eventtype, and usable as ‘eventtype=NAME' in SPL.

list_field_extractions

List field extractions (EXTRACT/REPORT). Returns names used by get_field_extraction and delete_field_extraction.

list_fired_alerts

List fired-alert groups (one per saved search that has triggered).

list_hec_tokens

List HTTP Event Collector (HEC) tokens/inputs. Returns names used by get_hec_token and update_hec_token.

list_indexes

List data indexes. Filter by name substring with ‘search’ or by ‘datatype’.

list_kvstore_collections

List KV store collection definitions in a namespace (owner/app).

list_lookups

List lookup-table definitions. Returns names used by get_lookup and update_lookup, and referenceable in SPL ‘lookup’ commands.

list_macros

List search macros. Returns names used by get_macro and update_macro, and referenceable in SPL with backticks.

list_roles

List Splunk roles. Returns names used by get_role, and the capabilities/index grants each role carries.

list_saved_searches

List saved searches (reports and alerts).

list_search_jobs

List search jobs on the deployment. Filter by SPL substring with ‘search’.

list_server_messages

List system bulletin messages (banner notices such as disk-space or crash warnings).

list_tags

List tags defined in the search app. Returns names used by get_tag and usable as ‘tag=NAME' in SPL.

list_users

List Splunk user accounts. Filter by username substring with ‘search’. Returns names used by get_user.

query_kvstore_records

Query documents in a KV store collection with an optional Mongo-style filter, field projection, and sort.

update_eventtype

Update an event type’s search, priority, or disabled state by name.

update_hec_token

Update an HTTP Event Collector token’s index, sourcetype, or disabled state by name.

update_index

Update a data index’s size, retention, or disabled state by name.

update_kvstore_collection

Update a KV store collection’s field types or acceleration by name in a namespace.

update_kvstore_record

Replace a KV store document by its _key with a new document (JSON body). Use query_kvstore_records to find keys.

update_lookup

Update a lookup-table definition’s file, collection, or field list by name.

update_macro

Update a search macro’s definition or arguments by name. Only provided fields change. Use list_macros to find names.

update_saved_search

Update a saved search’s SPL, schedule, or alert settings by name.