{"categories":[{"label":"Logging","url":"https://skillfed.io/packages/category/system-logging"}],"enrichment":{"capability":"A Python logging handler that sends log events to a Splunk Enterprise server via its HTTP Event Collector API.","skillfed_tags":["logging","splunk","observability"],"use_cases":["Forward application logs from a Python service to a centralized Splunk instance for monitoring and search.","Integrate Splunk logging into a Django or Flask application using logging.config.dictConfig.","Send Lambda function logs to Splunk by calling force_flush() at the end of the handler to ensure all queued events are delivered before execution halts.","Batch and retry log delivery to Splunk with configurable backoff and queue size limits to handle network failures gracefully.","Route logs to Splunk with custom source, sourcetype, and index values per log record or globally."],"what_it_does":"Splunk Handler is a Python logging handler that integrates with Python's standard logging framework to forward log records to a Splunk Enterprise server. It uses Splunk's HTTP Event Collector (HEC) API to send events asynchronously, with configurable batching, retry logic, and queue management. The handler wraps requests to communicate with Splunk and supports optional JSON formatting, proxy configuration, SSL verification control, and per-record parameter overrides.\n\nThe package is designed for applications that already run Splunk and need to push application logs into it without building custom HTTP clients. It handles threading concerns (with special support for AWS Lambda via a force_flush function), queue overflow strategies, and connection retries with backoff. Configuration can be done programmatically, via Python's logging.config.dictConfig, or via logging config files.","worth_installing":"Yes, if you run Splunk Enterprise and need a straightforward Python logging integration. The package is stable and low-friction to install. However, be aware it is dormant (last release 2021-08-17)\u2014use it for established, low-change deployments. If you need active maintenance or support for very recent Python versions, evaluate whether your Splunk version offers a newer official SDK or consider maintaining a fork."},"id":"splunk-handler","links":{"html":"https://skillfed.io/packages/splunk-handler","md":"https://skillfed.io/packages/splunk-handler.md","pypi":"https://pypi.org/project/splunk-handler/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2021-08-17","license_spdx":null,"license_treatment":"permissive","name":"splunk-handler","python_support":"unspecified","summary":"A Python logging handler that sends your logs to Splunk"},"popularity":{"monthly_downloads":1060012,"position":4420,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.0.0"}
