{"id":22399,"library":"splunklib","title":"splunklib","description":"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.","status":"active","version":"1.0.0","language":"python","source_language":"en","source_url":"https://github.com/IntegralDefense/splunklib","tags":["splunk","search","automation","rest-api"],"install":[{"cmd":"pip install splunklib","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"HTTP client for Splunk REST API","package":"requests","optional":false}],"imports":[{"wrong":"from splunklib import SplunkClient","symbol":"SplunkQueryObject","correct":"from splunklib import SplunkQueryObject"}],"quickstart":{"code":"from splunklib import SplunkClient\n\nclient = SplunkClient(\n    host='splunk.example.com',\n    port=8089,\n    username='admin',\n    password='changeme',\n    scheme='https'\n)\nsearch_query = 'search index=main | head 10'\nresults = client.search(search_query)\nfor result in results:\n    print(result)","lang":"python","description":"Basic example: connect to Splunk, run a search, and print results."},"warnings":[{"fix":"Pass verify=False or configure SSL context.","message":"The library uses urllib3's disable_warnings() by default, which disables SSL certificate verification. Always set verify=False explicitly or handle certificates yourself.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'splunk.example.com' not 'https://splunk.example.com'.","message":"Server host must not include 'http://' or 'https://' prefix; only the hostname or IP is accepted.","severity":"gotcha","affected_versions":"all"},{"fix":"Use username and password parameters.","message":"The library does not support Splunk authentication tokens; only username/password basic auth.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.0.0':27 '2022':30 'api':18,40 'around':14 'autom':9,37 'current':25 'execut':20 'librari':4 'perform':6 'provid':10 'recent':33 'releas':28 'rest':17,39 'rest-api':38 'result':24 'retriev':23 'search':8,21,36 'simpl':3 'splunk':7,15,35 'splunklib':1 'thin':12 'updat':34 'version':26 'wrapper':13","created_at":"2026-04-27T17:04:58.666753+00:00","updated_at":"2026-04-27T17:04:58.666753+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.0.0","cli_name":"","cli_version":null,"type":"library","homepage":"https://www.splunk.com","github":"https://github.com/IntegralDefense/splunklib","docs":null,"changelog":null,"pypi":"https://pypi.org/project/splunklib/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-networking","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}