{"library":"splunk-hec-handler","title":"splunk-hec-handler","type":"library","description":"A Python logging handler that sends logs to Splunk via HTTP Event Collector (HEC). Current version 1.2.0, maintained on GitHub with occasional updates.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install splunk-hec-handler"],"cli":null},"imports":["from splunk_hec_handler import SplunkHecHandler","from splunk_hec_handler import SplunkHecHandler"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/vavarachen/splunk_hec_handler","docs":null,"changelog":null,"pypi":"https://pypi.org/project/splunk-hec-handler/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import logging\nfrom splunk_hec_handler import SplunkHecHandler\n\nlogger = logging.getLogger('splunk')\nlogger.setLevel(logging.DEBUG)\nhandler = SplunkHecHandler(\n    'https://splunkhec.example.com',\n    token='your-hec-token',\n    source='python',\n    sourcetype='json',\n    index='main'\n)\nlogger.addHandler(handler)\nlogger.info('Test message')\n","lang":"python","description":"Basic setup: create handler with HEC URL and token, add to logger, log a test message.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}