Skip to main content

Connect Splunk to the Knowledge Base

Connect Splunk to this project with the host of its management port and an authentication token, then add the saved searches and lookup tables you want indexed. Splunk is not a document store, so the connector indexes the two things a Splunk admin writes down on purpose: the searches that encode how something is detected or reported, and the lookup tables those searches rely on.

This page is about the Knowledge Base connector (auth / connection). Separately, agents and workflows can call Splunk live through a toolkit — see toolkits overview.

Prerequisites​

You needDetails
The management portSplunk's REST API listens on 8089 (HTTP collector / web UI are different ports). Use https://splunk.example.com:8089, not https://splunk.example.com:8000.
An authentication tokenAn existing Splunk token, or one you create in Splunk under Settings → Tokens. The token goes out as Authorization: Splunk <token>.
A role that can read saved searches and lookupsThe token's user must be able to list <app>/saved/searches and <app>/data/lookup-table-files.
Network access from EKB to SplunkThe instance must be reachable from the platform on 8089.
Permission to manage KB resourcesYou must be a member of the project with KB write access.

Where to connect​

PathSteps
Project SettingsSettings → Connections → Cloud Storage & Documentation → Splunk
Knowledge Base SettingsKnowledge Base → Settings → Connectors → Splunk

The Splunk tile shows a green status and a connection count when linked.

Connect Splunk​

  1. Open the Splunk tile

    Go to Knowledge Base → Settings → Connectors and click the Splunk tile.

  2. Add the connection

    Click + Add Splunk Connection and fill in:

    FieldRequiredDescription
    Connection nameYesA label you recognise in the connection list, e.g. Production Splunk.
    Splunk hostYesHost or base URL of the management port, e.g. https://splunk.example.com:8089. A bare host is sent over HTTPS and defaults to port 8089.
    Authentication tokenYesThe token from Splunk.
    Verify the TLS certificateNoOn by default. Turn it off only for an instance with a self-signed certificate.
  3. Save

    Click Connect. The host and token are checked against the instance's /services/server/info before the connection is stored, so a wrong port, an untrusted certificate, and a rejected token each fail with their own message instead of a generic error. The Splunk version that answered is kept on the connection.

✓You're now ready to add Splunk saved searches and lookups to the Knowledge Base!

The connector supplies the host and token for the first fetch, every re-sync, and scheduled refreshes. Disconnect from the Splunk modal when a connection should be removed.

warning

Turning off Verify the TLS certificate sends the token over an unverified connection. Use it only for a self-signed instance you control, and prefer installing a trusted certificate.

Add objects to the Knowledge Base​

The picker walks Splunk in two levels instead of a file tree:

  1. Open the Splunk tile under Knowledge Base → Settings → Connectors.
  2. Click Add from Splunk.
  3. Pick an app. The first level lists the apps the token can see — for example search, SplunkEnterpriseSecuritySuite, or one of your own.
  4. Tick the saved searches and lookup tables you want. Saved searches and reports are listed together, because a report is a saved search with a schedule. Each app lists up to 500 objects.
  5. Click Add to knowledge base — with more than one object ticked the button reads Add N objects.

Adds that are already in the Knowledge Base are reported as skipped, not as errors, so re-picking a folder of objects is safe.

What gets indexed​

Saved searches render to a document with the search name, its app, owner and schedule, the description, and the SPL itself in a spl code block — plus dispatch time range and alert settings when they are set. The SPL is the content, because that is what answers how do we detect this here and what a later reader pastes back into Splunk; the description goes alongside it because a bare query loses the intent.

Lookup tables are downloaded as their raw CSV and indexed under a short header naming the table and its app. A large lookup is one big document — the file is downloaded in full, so a very large table produces a correspondingly large document.

Object references​

Each object is identified by a canonical, host-independent reference:

splunk://<app>/<saved_search|lookup>/<name>

That is also what the URL Upload flow accepts if you want to add one object by hand. The host is deliberately absent, so the same saved search on splunk-stg and on splunk-prod points at one document rather than two, and a renamed app or search updates the existing document instead of creating a duplicate.

Already synced / force re-sync​

Adding an object that is already in the Knowledge Base returns the existing document instead of queuing a second vectorisation job. Force re-sync re-reads the object and refreshes its content — use it after editing a search, and note that a lookup is re-downloaded in full.

Troubleshooting​

SymptomWhat to check
Could not reach Splunk at https://…The host must be reachable from the platform, and must include the management port (8089).
Splunk returned a non-JSON responseThe host points at the web UI or a proxy, not the management port.
Splunk's TLS certificate could not be verifiedThe instance uses a self-signed certificate. Turn off Verify the TLS certificate on the connection, or install a trusted certificate.
Splunk rejected the authentication tokenThe token was revoked or mistyped. Disconnect and add a fresh token.
The Splunk token is valid but is not allowed to read this resourceThe token's role cannot list saved searches or lookups. Grant a role that can, or use a different token.
No Splunk connection is available to you in this projectConnect Splunk under Connections, or ask the teammate who added it to share it with the project. A personal connection is only visible to its owner.
That is not a Splunk object referenceThe URL is not a splunk:// reference. Add objects through the Splunk picker instead of pasting a Splunk web URL.
Splunk has no saved search named 'x' in app 'y'The object was deleted or renamed after it was added. Remove the document or point it at the current name.
This app has no saved searches or lookupsThe app is installed but empty for this token, or the role hides its objects.