{"library":"splunklib","title":"splunklib","type":"library","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.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install splunklib"],"cli":null},"imports":["from splunklib import SplunkClient"],"auth":{"required":false,"env_vars":[]},"links":{"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},"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.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}