python-logstash
Python logging handler for Logstash.
Decision gist · record as of 2026-08-14
Yes, with conditions. The package is stable and permissively licensed, with no known vulnerabilities and a straightforward integration path. However, dormant maintenance since 2022 and source-only distribution create friction. Install only if you are already committed to Logstash and can tolerate the lack of active support; do not rely on it for new projects where you need ongoing compatibility updates or modern Python version guarantees.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running Logstash instance listening on the specified host and port; AMQP handler requires pika to be installed separately.
- High install friction due to source-only distribution.
- Maintenance is dormant: last release was 2022-03-30, over 1598 days ago, though the repository remains active with 462 stars and a final commit on 2024-08-02.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and poses no restrictions on use, modification, or redistribution in proprietary or open-source projects.
last release 2022-03-30 (1598 days) · last repo commit 2024-08-02 · 462 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 629,287 downloads/mo, #5,666 on PyPI
Alternatives
Verify before relying
pip install python-logstash
import logging
import logstash
test_logger = logging.getLogger('test')
test_logger.setLevel(logging.INFO)
test_logger.addHandler(logstash.LogstashHandler('localhost', 5959, version=1))
test_logger.info('Test message')- Whether Python 3.8+ compatibility has been validated since the last release in 2022.
- Current status of AMQP handler reliability and whether pika dependency is actively maintained.
- Whether the package works with modern Logstash versions beyond those tested during active development.
What it is and what it does
python-logstash is a Python logging handler that bridges your application's logs to Logstash by formatting log records as JSON and sending them over UDP or TCP. It integrates directly with Python's standard logging module, allowing you to attach it to any logger and forward events to a Logstash instance for centralized aggregation, parsing, and analysis. The handler supports custom fields via the logging `extra` parameter, multiple transport protocols (UDP, TCP, AMQP), and can be configured in Django settings for framework-level integration.
The package has been dormant since March 2022, with no active maintenance or recent releases. While the repository remains archived-free and the code is stable for basic use cases, it has not been updated to address modern Python versions or Logstash schema changes that may have occurred in the past four years. Installation requires building from source, which adds friction compared to pre-built wheels.
Use it for
- Forward application logs from a Python service to a centralized Logstash instance for aggregation and analysis.
- Integrate Django application logging with Logstash by configuring the handler in Django's LOGGING settings.
- Send structured log events with custom fields (strings, booleans, dicts, lists) to Logstash for enriched log analysis.
- Route logs through AMQP to Logstash when direct UDP/TCP is not available or when message queuing is required.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
The package is stable and permissively licensed, with no known vulnerabilities and a straightforward integration path. However, dormant maintenance since 2022 and source-only distribution create friction. Install only if you are already committed to Logstash and can tolerate the lack of active support; do not rely on it for new projects where you need ongoing compatibility updates or modern Python version guarantees.
Install
python-logstash on PyPI
Before you install
High install friction due to source-only distribution. Maintenance is dormant: last release was 2022-03-30, over 1598 days ago, though the repository remains active with 462 stars and a final commit on 2024-08-02. No runtime dependencies to manage.
Requires a running Logstash instance listening on the specified host and port; AMQP handler requires pika to be installed separately.
License in practice
MIT license is permissive and poses no restrictions on use, modification, or redistribution in proprietary or open-source projects.
Quickstart
pip install python-logstash
import logging
import logstash
test_logger = logging.getLogger('test')
test_logger.setLevel(logging.INFO)
test_logger.addHandler(logstash.LogstashHandler('localhost', 5959, version=1))
test_logger.info('Test message')
Verify before relying
- Whether Python 3.8+ compatibility has been validated since the last release in 2022.
- Current status of AMQP handler reliability and whether pika dependency is actively maintained.
- Whether the package works with modern Logstash versions beyond those tested during active development.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Dormant 1,598 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 629,287 / month, #5,666 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Logging |
Evidence: python-logstash-0.4.8.tar.gz
Tags
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 › “send logs to logstash”
- python-logstashSends Python log records to Logstash over UDP or TCP, formatting them…
- pylogbeatPyLogBeat sends log messages and structured data to Logstash's beats…
- logstash_formatterFormats Python logging output as JSON objects compatible with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also pylogbeat · python3-logstash · python-logstash-async · graypy · logstash_formatter · fluent-logger · pygelf · JSON-log-formatter · jsonformatter · rfc5424-logging-handler