splunk-cli

splunk-cli is a skill for Claude Code, Codex from abdullahkhawer/devops-skills. It costs 33 tokens per session (844 once invoked), scanned B, original, Apache-2.0.

A skill for querying and inspecting Splunk through its web API. Splunk stores and searches machine data such as logs, and can contain saved searches, indexes, and alerts.

In plain words
What is it for?
Use it to run searches and inspect saved searches, indexes, and alerts in a Splunk instance.
Why use it?
It provides a repeatable way to investigate stored logs and search configurations without depending on a graphical interface. It keeps the selected environment and authentication token explicit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to run searches and inspect saved searches, indexes, and alerts in a Splunk instance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abdullahkhawer/devops-skills/splunk-cli
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.

Any agent
npx skills add abdullahkhawer/devops-skills --skill splunk-cli
Clone the repo
git clone --depth 1 https://github.com/abdullahkhawer/devops-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-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/splunk-cli/github.svg)](https://agentmods.dev/skills/abdullahkhawer/devops-skills/splunk-cli)
Your own site
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/splunk-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/splunk-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for splunk-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/splunk-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/splunk-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 844 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00033 $0.00844
Opus 5.5 $0.00013 $0.00338
Sonnet 5.5 $0.00007 $0.00169
Haiku 4.5 $0.00003 $0.00084

Measured 2mo ago against content hash 3e5fb01895b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

splunk-cli scanned grade B with 2 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 2mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

mkdir -p ~/.splunk && echo "<your-auth-token>" > <TOKEN_FILE> && chmod 600 <TOKEN_FILE>

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: Perform Splunk operations using the Splunk REST API via curl. Use for running search queries, and inspecting saved searches, indexes, and alerts.
skills/splunk-cli/SKILL.md · 81 lines

How it starts

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

Splunk CLI Skill

Use the instance and rules below when constructing all Splunk API commands.

Instances

Update the table below with your Splunk instance URLs and credential file paths:

Environment Base URL Token File
Production https://<your-splunk-prod-url>:8089 ~/.splunk/prod.token
Staging https://<your-splunk-staging-url>:8089 ~/.splunk/staging.token

If the target instance is unclear, ask the user before running any command.

Prerequisites (one-time setup by user)

Generate a Splunk authentication token (Settings → Tokens) for each instance and save it to the corresponding token file. Never print or display token values. Do not perform these steps yourself.

mkdir -p ~/.splunk && echo "<your-auth-token>" > <TOKEN_FILE> && chmod 600 <TOKEN_FILE>

Command Format

curl -s -H "Authorization: Bearer $(cat <TOKEN_FILE>)" \
  "<BASE_URL>/services/<endpoint>?output_mode=json" | jq .

Available API Endpoints

Read-only (safe, no confirmation needed)

Endpoint Method Description
/services/search/jobs/export GET/POST Run a search query and stream results
/services/search/jobs/<sid>/results GET Get results of a completed search job
/services/saved/searches GET List saved searches
/services/data/indexes GET List indexes
/services/alerts/fired_alerts GET List fired alerts
/services/server/info GET Show server/instance info

Example — run a search

curl -s -H "Authorization: Bearer $(cat <TOKEN_FILE>)" \
  --data-urlencode "search=search index=<index> error | head 20" \
  "<BASE_URL>/services/search/jobs/export?output_mode=json" | jq .

Mutating operations (confirm with user before running)

Endpoint Method Description
/services/saved/searches POST Create a saved search
/services/saved/searches/<name> POST Update a saved search
/services/data/indexes POST Create a new index

Read the full file on GitHub · 81 lines

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. 2mo ago First seen · 81 lines · 33 tokens per session scan B 3e5fb01895b8

Subscribe to this mod's changes

splunk-cli is a skill published in the GitHub repository abdullahkhawer/devops-skills (11 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 33 tokens to every session and 844 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

splunk-cli compared with skills from other repositories

splunk-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
splunk-cliabdullahkhawer/devops-skillsSkill112mo agoApache-2.0B33Claude Code, Codex
proposal-troubleshoothutzelmann/thesis-proposal-skillsSkill106d agoMITA66Claude Code
agents-sdk-dotnet-debuggingmicrosoft/AgentsSkill1.1k5d agoMITA136Claude Code
fetch-urlarabold/docs-mcp-serverSkill1.9k8d agoMITA51Claude Code, Codex
workthreadsspecstoryai/getspecstorySkill1.4k3d agoApache-2.0A126Claude Code
issuejeremylongshore/tons-of-skills-marketplaceSkill3.0ktodayMITA115Claude Code
temps-plugingotempsh/tempsSkill951todayApache-2.0A94Claude Code, Codex