Skip to content
This repository

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.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 scripts
Octocat-spinner-32 splunky
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 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.