splunk-search

splunk-search is a skill for Claude Code, Codex from splunk/splunk-agent-skills. It costs 44 tokens per session (1,839 once invoked), scanned A, original, Apache-2.0.

A read-only way to search Splunk, a system that stores and searches logs and other machine data, using Splunk Processing Language (SPL). Large search results are saved locally in SQLite, a small file-based database, for later inspection.

In plain words
What is it for?
Use it for incident investigation, production or staging log triage, and focused analysis of saved search results with summaries, text searches, ordered events, or limited SQL.
Why use it?
It keeps oversized log searches out of the agent's conversation while preserving the full result set as a local artifact. You can then retrieve only the summaries, samples, or evidence you need.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/splunk/splunk-agent-skills/splunk-search
Any agent
npx skills add splunk/splunk-agent-skills --skill splunk-search
Clone the repo
git clone --depth 1 https://github.com/splunk/splunk-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for splunk-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/splunk/splunk-agent-skills/splunk-search.svg)](https://agentmods.dev/skills/splunk/splunk-agent-skills/splunk-search)
Your own site
<a href="https://agentmods.dev/skills/splunk/splunk-agent-skills/splunk-search"><img src="https://agentmods.dev/badge/skills/splunk/splunk-agent-skills/splunk-search.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,839 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01839
Opus 5 $0.00022 $0.00920
Sonnet 5 $0.00009 $0.00368
Haiku 4.5 $0.00004 $0.00184

Measured 5d ago against content hash f4bfdb0cb759, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

splunk-search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/splunk-search/SKILL.md · 186 lines

How it starts

The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Use Splunk Search when a user needs read-only Splunk evidence but the result set may be too large for the agent context. The splsearch CLI writes search results to a local SQLite table and returns compact JSON with the table name. Treat the saved table as the artifact, then bring only focused summaries, small samples, or exact evidence back into the conversation.

Prerequisites

The splsearch CLI is installed and available on PATH, or the runtime provides an equivalent splsearch binary for this skill. In this repository, the packaged Go source for that CLI lives in tools/splsearch. From the repository root, build the tool artifact with make -C tools/splsearch build, then put tools/splsearch/bin on PATH before using the skill locally.

The user has read-only access to the target Splunk Enterprise or Splunk Cloud Platform environment and can provide the target URL, time window, and search intent. Do not ask for passwords, cookies, tokens, or raw credential files.

When to Use

Use this skill for Splunk log investigation, production or staging incident triage, saved result-table analysis, and requests that mention splsearch, Splunk search, SPL execution, or querying saved Splunk results.

Do not use this skill for changing Splunk configuration, editing knowledge objects, deleting data, restarting services, creating alerts, modifying indexes, or handling secrets. If the user wants SPL authoring help without running a search or inspecting saved results, answer without invoking this skill.

Workflow Overview

  1. Identify the target Splunk URL, time window, impact scope, and strongest available filters.
  2. Check cached auth with splsearch auth status --output=json when the target is unclear.
  3. Validate a specific target with splsearch auth status --url=<splunk-url> --output=json before deciding whether browser login is needed.
  4. Run one bounded table-writing search with a useful time range and result table name.
  5. Keep the returned table name and use it for every follow-up command.
  6. Review any saved warnings before continuing. If a broad fetch was intentional, record that by accepting the warning.
  7. Inspect schema or metadata before writing SQL against the saved table.
  8. Use text search, summary, ordered events, or bounded SQL to reduce the saved results locally.
  9. Bring only the compact answer set, evidence snippets, and command summary back into chat.
  10. Keep the result table while the incident or handoff is active, then drop it when evidence has been captured elsewhere.

Read the full file on GitHub · 186 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 186 lines · 44 tokens per session scan A f4bfdb0cb759

Subscribe to this mod's changes

splunk-search is a skill published in the GitHub repository splunk/splunk-agent-skills (28 stars, last pushed 15d ago), licensed Apache-2.0. It adds 44 tokens to every session and 1,839 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

schema-exploration

Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.

langchain-ai/deepagents · 57 tokens

debugging

How to debug tursodb using Bytecode comparison, logging, ThreadSanitizer, deterministic simulation, and corruption analysis tools.

tursodatabase/turso · 28 tokens

sdk-design

Doctrine for designing and evolving any SDK Grida ships — TypeScript, Rust, or otherwise. "SDK" here means a surface that crosses a foreign-or-foreign-treated boundary: published packages, separately-versioned consumers, FFI bindings, public-by-design modules. An SDK's job is to refuse; a strict, honest surface…

gridaco/grida · 199 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

supabase

Supabase / PostgREST Row-Level-Security playbook — pull the anon (or leaked servicerole) key out of the frontend JS, map tables from the auto-generated OpenAPI spec, test anonymous RLS READ disclosures (PII/secret leaks), and anonymous RLS WRITE abuse (insert/update/delete — e.g. forging…

PentesterFlow/agent · 120 tokens

nornicdb-cypher-queries

Pick fast, predictable Cypher query shapes in NornicDB — point lookups, batch retrieval, pagination, search, traversal, batched UNWIND/MERGE writes, cleanup, multi-tenant isolation. Use when writing or reviewing Cypher whose latency or throughput matters; maps user intent to the executor's hot-path query templates.

orneryd/NornicDB · 79 tokens