Skip to main content

CLI tool for Splunk Enterprise SIEM operations.

Project description

splunkctl

CLI tool for Splunk Enterprise SIEM operations.

Query, inspect, and manage a Splunk Enterprise instance from the terminal. Built on the splunk-sdk-python fork with Click.

Install

pip install splunkctl

Requires Python 3.13+.

Quick start

splunkctl config init                         # interactive setup
splunkctl config test                         # verify connectivity
splunkctl search run 'index=main | head 10'   # run a search
splunkctl rules list                          # list detection rules
splunkctl dashboards list                     # list dashboards

Commands

Group Description
config Setup, show config, test connectivity
info Server info (version, OS, license)
search Run, export, oneshot, job management
rules Detection rules (saved searches) — full CRUD
alerts Fired alerts, alert actions, suppression
dashboards Dashboard CRUD (XML)
indexes Index management
inputs Data inputs (monitor, tcp, udp, script, http)
lookups Lookup table CRUD (CSV)
parsers Source types and field extractions
apps App install, uninstall, update
users User and role management
commands Machine-readable command tree (JSON)
skill Embedded agent operating guide

Global flags

--json              Force JSON output
--format FMT        Output format: table, json, csv, jsonl
--fields f1,f2      Project specific fields
--out FILE          Write output to file
--yes / -y          Apply mutations (skip dry-run preview)
--timeout N         Request timeout in seconds (default 30)
--config FILE       Config file path
--debug             HTTP request/response logging

Dry-run by default

All write operations preview what would change. Pass --yes to apply.

splunkctl rules delete 'My Rule'          # shows preview only
splunkctl rules delete 'My Rule' --yes    # actually deletes

Output formats

splunkctl rules list                      # table (TTY) or JSON (pipe)
splunkctl rules list --json               # force JSON
splunkctl rules list --format csv         # CSV
splunkctl rules list --fields name,cron   # project fields
splunkctl rules list --out rules.json     # write to file

Agent integration

splunkctl ships with an embedded operating guide for AI agents (Claude Code, etc.):

splunkctl skill                           # print the guide
splunkctl skill install                   # install to ~/.claude/skills/
splunkctl commands                        # JSON command tree for discovery

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

splunkctl-0.1.0.tar.gz (29.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

splunkctl-0.1.0-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file splunkctl-0.1.0.tar.gz.

File metadata

  • Download URL: splunkctl-0.1.0.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for splunkctl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0562e67d9ffb4298116466f50eb5ffca0c11ccbc8d9b42a6c8bca7b867bcfa78
MD5 952fe94815286d1b8156c66ebc74ba2d
BLAKE2b-256 b7a2473fa2005292e28dee0173820f67047d72fdc7ba70608c38a7cb1575603d

See more details on using hashes here.

Provenance

The following attestation bundles were made for splunkctl-0.1.0.tar.gz:

Publisher: publish.yml on dannyota/splunkctl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file splunkctl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: splunkctl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 35.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for splunkctl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d6814aa87271bb220e5c0318b534bd761225d7fb039c41b0520eb8a44298389
MD5 280ec58d5e8e043a8cc391dc68395d64
BLAKE2b-256 711d0c1677d4aa056e830698c49c6576f9f30273b7313295877dc8c76db14790

See more details on using hashes here.

Provenance

The following attestation bundles were made for splunkctl-0.1.0-py3-none-any.whl:

Publisher: publish.yml on dannyota/splunkctl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page