Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
stupid simple library for running queries against the Splunk API.
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
scripts
splunky
.gitignore
README.md
setup.py

README.md

Splunky

splunky is a stupid simple library for running queries against the Splunk API. It does not need the splunk SDK installed.

API Usage

import splunky
p=splunky.Server(host=host, username=username, password=pw)

for r in p.search_sync('hoursago=1 error'):
    print r['_raw']

CLI Usage

splunky-search 'hoursago=48 SPANTREE' -s splunk.example.com
Something went wrong with that request. Please try again.