Registry / http-networking / splunklib

splunklib

JSON →
library1.0.0pypypi✓ verified 79d ago

A simple library for performing Splunk search automation. Provides a thin wrapper around Splunk's REST API to execute searches and retrieve results. Current version 1.0.0, released in 2022, with no recent updates.

pip install splunklib
INSTALL
IMPORT
SIG · SPLUNKLIB
S
splunklib
http-networkingpythonv1.0.0
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SplunkQueryObject
from splunklib import SplunkQueryObject
from splunklib import SplunkClient

Basic example: connect to Splunk, run a search, and print results.

from splunklib import SplunkClient client = SplunkClient( host='splunk.example.com', port=8089, username='admin', password='changeme', scheme='https' ) search_query = 'search index=main | head 10' results = client.search(search_query) for result in results: print(result)
Debug
Known issues
gotchaThe library uses urllib3's disable_warnings() by default, which disables SSL certificate verification. Always set verify=False explicitly or handle certificates yourself.
fix
Pass verify=False or configure SSL context.
affects: all
gotchaServer host must not include 'http://' or 'https://' prefix; only the hostname or IP is accepted.
fix
Use 'splunk.example.com' not 'https://splunk.example.com'.
affects: all
gotchaThe library does not support Splunk authentication tokens; only username/password basic auth.
fix
Use username and password parameters.
affects: all
Upgrade
Version history
1.0.0latest on PyPI · released Aug 8, 2018
Audit
Dependencies
requestsrequiredHTTP client for Splunk REST API
Agent activity
18 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
splunklib — pip install splunklib · libregistry