$npx skillfedfor your agent

splunk-handler

A Python logging handler that sends your logs to Splunk

With conditionsPyPI LoggingReleased Aug 20211.1M downloads / moMIT LicensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — splunk_handler-3.0.0-py2.py3-none-any.whl
v3.0.0 · released 2021-08-17 · 1 runtime deps: requests

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)—use 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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a Splunk Enterprise server with HTTP Event Collector (HEC) enabled and configured; you must provide a valid HEC token and host/port.
  • Low install friction with a single runtime dependency (requests).
  • Maintenance is dormant—last release was 2021-08-17—so expect no active bug fixes or feature updates, though the codebase remains stable for existing use.

License · maintenance · safety

MIT License (permissive) — MIT License (permissive) allows free use, modification, and distribution with minimal restrictions, making it safe to adopt in most projects.

last release 2021-08-17 (1823 days) · last repo commit 2024-05-13 · 57 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,060,012 downloads/mo, #4,420 on PyPI

Verify before relying

pip install splunk_handler

from splunk_handler import SplunkHandler
import logging

splunk = SplunkHandler(
    host='splunk.example.com',
    port='8088',
    token='YOUR_HEC_TOKEN',
    index='main'
)
logging.getLogger('').addHandler(splunk)
logging.warning('hello!')
  • Whether the package works reliably with Python versions beyond 3.9 (classifiers list 3.6–3.9 but latest release is from 2021).
  • Current compatibility with modern versions of the requests library and urllib3 retry logic.
Same gist for agents: .md · .json

What it is and 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.

The 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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)—use 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.

Install

splunk-handler on PyPI

Before you install

Low install friction with a single runtime dependency (requests). Maintenance is dormant—last release was 2021-08-17—so expect no active bug fixes or feature updates, though the codebase remains stable for existing use.

Requires a Splunk Enterprise server with HTTP Event Collector (HEC) enabled and configured; you must provide a valid HEC token and host/port.

License in practice

MIT License (permissive) allows free use, modification, and distribution with minimal restrictions, making it safe to adopt in most projects.

Quickstart

pip install splunk_handler

from splunk_handler import SplunkHandler
import logging

splunk = SplunkHandler(
    host='splunk.example.com',
    port='8088',
    token='YOUR_HEC_TOKEN',
    index='main'
)
logging.getLogger('').addHandler(splunk)
logging.warning('hello!')

Verify before relying

  • Whether the package works reliably with Python versions beyond 3.9 (classifiers list 3.6–3.9 but latest release is from 2021).
  • Current compatibility with modern versions of the requests library and urllib3 retry logic.

Package facts

LicenseMIT License permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
requests
MaintenanceDormant 1,823 days since the last release
Last repo commit
First released
Downloads1,060,012 / month, #4,420 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: System :: Logging

Evidence: splunk_handler-3.0.0-py2.py3-none-any.whl

Tags

Capabilities
splunk logging handlersend logs to splunkpython splunk integrationsplunk http event collectorlog aggregation splunksplunk python logger
Topics
loggingsplunkobservability

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “splunk logging handler”

  • splunk-handlerA Python logging handler that sends log events to a Splunk Enterprise…
  • splunk-hec-handlerIntegrates Python logging with Splunk's HTTP Event Collector (HEC) to…
  • logging-jsonFormats Python logging records as JSON output, enabling structured…

Give your agent the search over MCP, or paste the wish link into any chat.

More Logging packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
python-json-logger Worth it
PyPI · Logging · released Mar 2026

Formats Python logging output as JSON, making logs machine-readable for parsing and ingestion into log aggregation tools.

Install it if you need JSON-formatted logs for aggregation or centralized monitoring.

BSD-2-Clausepure Python · 3.10+
122.1Mdownloads / mo
structlog Worth it
PyPI · Logging · released Jun 2026

structlog is a structured logging library that lets you emit logs as dictionaries with flexible output formats (JSON, logfmt, console) and integrates with Python's standard logging or runs standalone.

Install it if your application needs JSON or logfmt output, or if you want to add rich context to logs without string formatting.

MIT OR Apache-2.0pure Python · 3.10+
113.6Mdownloads / mo
loguru Worth it
PyPI · Logging · released Dec 2024

Loguru provides a pre-configured logger that replaces Python's standard logging with a simpler, zero-boilerplate interface for writing log messages to stderr, files, or custom handlers.

Install it if you want logging to feel natural but with the power, structure that production code needs.

MITpure Python
81.9Mdownloads / mo
coloredlogs With conditions
PyPI · Software Development · released Jun 2021

Adds colored output to Python's standard logging module using ANSI escape sequences, with automatic fallback support for Windows terminals.

However, it is abandoned and receives no maintenance, so it will not adapt to future Python changes or platform updates.

MITpure Pythonabandoned
39.6Mdownloads / mo
wandb Worth it
PyPI · Python Modules · released Aug 2026

wandb is a machine learning experiment tracking and visualization platform that logs metrics, hyperparameters, datasets, and models to a centralized dashboard for monitoring and comparing training runs.

Install it if you need centralized experiment tracking, comparison, and visualization for machine learning projects; skip it if you prefer local-only logging or have…

MITcompiled wheel · 3.10+
26.4Mdownloads / mo

See also logzio-python-handler · splunk-hec-handler · splunk-sdk · pysigma-backend-splunk · fluent-logger · cloudwatch · logging-azure-rest · splunk-opentelemetry · logging-json · signalflow-client-python