KosmoKrator

monitoring

Splunk MCP, CLI, and Lua Integration for AI Agents

Splunk integration docs for AI agents: MCP gateway setup, Splunk CLI commands, Lua API reference, credentials, and function schemas.

6 functions 5 read 1 write Bearer token auth

Splunk for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
splunk
route_slug
splunk
package
splunk
auth_strategy
bearer_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Splunk MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Splunk.

Splunk CLI Matrix

Use these pages for direct Splunk CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
splunk.splunk_search Write write 3 Run a Splunk search query (SPL). Creates an asynchronous search job and returns the search ID (SID). Use splunk_get_search_results to retrieve results once the job completes.
splunk.splunk_get_search_results Read read 3 Retrieve results from a completed Splunk search job. Pass the search ID (SID) returned by splunk_search. Supports pagination with offset and count parameters.
splunk.splunk_list_indexes Read read 0 List all Splunk indexes available to the authenticated user. Returns index names, sizes, event counts, and retention settings.
splunk.splunk_list_saved_searches Read read 0 List all saved searches configured in Splunk. Returns search names, queries, schedules, and alert settings.
splunk.splunk_get_index Read read 1 Get details for a specific Splunk index by name. Returns configuration, size, event count, and retention policy.
splunk.splunk_get_current_user Read read 0 Get the current authenticated Splunk user context. Returns username, roles, capabilities, and tenant information.