Overview
The Splunk AI connector gives Rootly AI current logs and operational context during an investigation. Rootly AI can run bounded Splunk Search Processing Language (SPL) searches, discover indexes and sourcetypes, inspect knowledge objects, and review alert definitions, firing history, and throttling state. The connection uses the official MCP Server for Splunk Platform and an encrypted MCP token. Rootly connects to the server over HTTPS with the streamable HTTP transport. The connector supports Splunk Enterprise and Splunk Cloud Platform deployments that can expose an MCP endpoint to Rootly.Before You Start
You’ll need:- MCP Server for Splunk Platform version 2.0.0 installed on the search head or search head cluster that Rootly should query.
- Token authentication and API access enabled for the Splunk deployment.
- A dedicated Splunk user with
mcp_tool_execute, permission to use the MCP APIs, and search access limited to the indexes Rootly AI should investigate. - A Splunk administrator with
mcp_tool_adminand permission to create a token for the dedicated user. - A public HTTPS MCP endpoint that Rootly can reach with a certificate signed by a trusted certificate authority.
- Permission in Rootly to manage AI connectors.
Configure Splunk
Install the MCP Server App
Create a Dedicated Role and User
mcp_tool_execute to the role used by the connector. Give that role permission to access the MCP APIs and search only the indexes Rootly AI needs.Keep administrative capabilities, user management, and unrelated indexes out of the role. Splunk continues to apply the user’s role-based access control to every search and tool call.Review MCP Tools and Guardrails
splunk_run_query tool and the makeresults SPL command to verify the connection. Add makeresults to the MCP Server’s allowed search commands if you restrict commands. Disabling the tool or command prevents setup from completing.Generate an Encrypted Token
mcp_tool_admin plus edit_tokens_all. A user creating a token for themselves needs mcp_tool_admin plus edit_tokens_own.Choose an expiration that matches your credential-rotation policy and copy the token when Splunk displays it. Splunk shows the token value only once.Copy the MCP Endpoint
en-US. Use the exact endpoint displayed by the MCP Server app. The endpoint must not contain credentials, query parameters, or a fragment.Connect Splunk
Open the Splunk Card
Enter the Endpoint
Enter the Encrypted Token
Confirm the Connection
splunk_run_query, then runs a synthetic search that creates one in-memory result. The connector becomes active only after both checks succeed.What Rootly AI Can Investigate
Rootly exposes a reviewed set of Splunk platform tools for investigation:splunk_run_query.
Splunk’s MCP server enforces its configured tools, role-based access, allowed SPL commands, row limits, timeouts, workload controls, and rate limits. Configure the dedicated user’s permissions and Splunk’s allowed-command list as the authoritative boundary for searches, including commands that can write data. A tool name must pass Rootly’s reviewed list, and every operation must pass the Splunk deployment’s controls.
Investigation Examples
Include an index or sourcetype, service, environment, and bounded UTC time range when possible:- “Which new error signatures appeared in
index=productionduring the 20 minutes after the deploy?” - “Compare checkout API errors in the incident window with the preceding 30 minutes, grouped by status code and host.”
- “Find events for this request ID and summarize the sequence across services.”
- “Which Splunk alerts fired for payment services during the incident, and were any throttled?”
- “List the indexes and sourcetypes relevant to Kubernetes ingress logs before searching for 5xx responses.”
- “Which dashboard or saved-search definition is most relevant to this service failure?”
Access and Data Handling
- Splunk permissions apply. Rootly AI can read only the data available to the user represented by the encrypted token.
- Reviewed investigation tools. Rootly limits calls to its pinned Splunk tool set and doesn’t expose administrative or user-discovery tools.
- On-demand queries. Rootly queries Splunk when an investigation or direct question needs current evidence.
- Encrypted credential storage. Rootly encrypts the MCP token at rest. Disconnecting the AI connector removes the stored credential.
- Redacted session history. Raw Splunk tool results are available to the active investigation but aren’t persisted in the AI session transcript.
- Quality traces. Connector results can appear in retained large language model (LLM) traces used for quality monitoring. See Data Privacy for Rootly AI for the retention boundary.
- Splunk limits apply. Searches count against the deployment’s compute, workload, timeout, row-limit, and rate-limit controls.
Manage the Connection
Open AI & Agents → Connectors and find the Splunk card to reconnect or disconnect it. Reconnect after the encrypted token expires, is revoked, or is invalidated by an MCP Server key rotation. Generate a replacement encrypted token in the Splunk MCP Server app, then submit the endpoint and new token through the Splunk card. A failed reconnect leaves the previous connection unchanged. Disconnecting removes Rootly’s stored endpoint and token and prevents future queries. It doesn’t revoke the token in Splunk. Revoke the token separately in the Splunk MCP Server app when the connection is no longer needed.Troubleshooting
Rootly can't reach the MCP endpoint
Rootly can't reach the MCP endpoint
/services/mcp, a localized Splunk Web proxy path such as /en-US/splunkd/__raw/services/mcp, or the supported Splunk Cloud Services path. Check firewall rules and allow Rootly’s published IP ranges when your deployment restricts inbound traffic.TLS certificate validation fails
TLS certificate validation fails
Splunk rejects the token
Splunk rejects the token
The connection check says splunk_run_query is missing
The connection check says splunk_run_query is missing
splunk_run_query tool. Confirm the connector user’s role includes mcp_tool_execute and access to the MCP APIs, then reconnect.Searches time out or return truncated results
Searches time out or return truncated results
Frequently Asked Questions
Can Rootly AI modify Splunk data or configuration?
Can Rootly AI modify Splunk data or configuration?
splunk_run_query. Splunk’s allowed-command list and the dedicated user’s permissions determine whether a search can write data, so exclude write-capable commands and keep that user restricted.Can I use a regular Splunk API or HEC token?
Can I use a regular Splunk API or HEC token?
Does this connector query Splunk Observability Cloud?
Does this connector query Splunk Observability Cloud?
How do I limit which Splunk data Rootly AI sees?
How do I limit which Splunk data Rootly AI sees?