Overview
The Splunk integration lets Cotool agents investigate and hunt in your Splunk data. It provides:- Data discovery — list indexes and sourcetypes, and get the exact field names, types, and example values for a sourcetype before writing SPL.
- SPL searches — run ad-hoc search jobs over explicit time ranges and page through their results.
- Detections — list Splunk saved searches and create new ones.
Create a Splunk token
1
Open the tokens page
In Splunk Web, click Settings > Tokens, then click New
Token. If the page says token authentication is not enabled, a Splunk
admin must turn it on first.
2
Configure the token
Set User to a dedicated Splunk user with search access to the
indexes Cotool needs. Do not use an admin account. Enter
Cotool as the
Audience, and set an Expiration. If you leave the expiration
empty, the token expires after 30 days.3
Copy the token
Click Create and copy the whole token. Splunk shows it only once.
Connect in Cotool
- Go to Integrations in the Cotool sidebar, open Splunk, and click Connect.
- Enter your connection details:
- Click Connect. Cotool starts building an environment map right away.
Available Tools
When an agent has the Splunk integration enabled, it can use these tools:splunk_createDetection is the only tool that changes your Splunk configuration. The other tools read data and settings.
How Cotool searches Splunk
- Agents discover before they query. Agents list indexes and sourcetypes, then check a sourcetype’s fields, so their SPL uses real field names.
- Searches name their indexes. Cotool rejects searches over
index=*and searches with leading wildcards such asfield=*value, because both are slow on large deployments. Agents search concrete indexes and useTERM()for exact values such as IP addresses. - Searches have a time limit. When a search reaches the query timeout you set, Cotool finalizes the job and returns the results found so far, to conserve Splunk resources.
- Large results are paged. A search returns its first page of results, and agents fetch the rest of a completed job page by page.
- Cotool Logs come first. If a log source is also ingested into Cotool Logs, agents query it there, and use Splunk for data only Splunk holds or when you ask for Splunk.