rfc5424-logging-handler
An up-to-date, RFC5424-Compliant syslog handler for the Python logging framework
What it is and what it does
This package extends Python's standard logging framework with a handler that sends log messages to remote syslog servers using the RFC 5424 protocol format. It wraps the low-level syslog details—priority encoding, timestamp formatting, hostname and application name fields, and structured data—so you can log using Python's familiar logging API without writing custom formatters. The handler supports both UDP and TCP transports, optional TLS/SSL encryption, and can also write to streams like files or stderr.
The package depends on tzlocal and pytz for timezone handling. It is marked Production/Stable in its classifiers, but development stopped in 2019 with no active maintenance since then, so it should be considered stable but not actively developed.
Use it for:
- Send application logs to a centralized syslog server for aggregation and monitoring across multiple hosts
- Integrate Python applications with enterprise syslog infrastructure that requires RFC 5424 compliance
- Log structured data (message IDs, key-value pairs) to syslog while maintaining RFC 5424 format compliance
- Encrypt syslog transmission over the network using TLS/SSL instead of plain UDP or TCP
- Write logs to local files or stderr in RFC 5424 format without a remote syslog server
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python logging handler that formats and sends log messages to syslog servers in RFC 5424 compliant format, with support for TLS/SSL and alternate transports.
Yes, if you need RFC 5424 compliant syslog logging and can accept that the package is no longer actively maintained. The low install friction and permissive license make it straightforward to adopt. However, verify compatibility with your target Python version and syslog infrastructure, and be prepared to fork or patch if issues arise. For new projects, consider whether a more actively maintained alternative better suits your risk tolerance.
Install
rfc5424-logging-handler on PyPI
pip
pip install rfc5424-logging-handleruv
uv add rfc5424-logging-handlerpoetry
poetry add rfc5424-logging-handlerInstalling rfc5424-logging-handler
Before you install
Low install friction with only two lightweight runtime dependencies (tzlocal and pytz). However, the project is abandoned—last release was 2019-05-19 and last commit 2023-05-18—so no active maintenance or security updates should be expected.
License in practice
BSD license is permissive, allowing commercial and private use with minimal restrictions. You may use, modify, and distribute this package freely provided you include the original license notice.
Quickstart
import logging
from rfc5424logging import Rfc5424SysLogHandler
logger = logging.getLogger('test')
sh = Rfc5424SysLogHandler(address=('10.0.0.1', 514))
logger.addHandler(sh)
logger.info('Message', extra={'msgid': 'unique_id'})
Verify before relying
- Whether the package works reliably with Python versions released after 2019 (classifiers list only up to 3.7)
- Current compatibility with modern syslog servers and whether the UTF-8 BOM handling remains appropriate
- Whether TLS/SSL transport is production-ready given the lack of recent maintenance
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — tzlocal, pytz |
| Maintenance | abandoned — 2,644 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 87,872/month — #13,763 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: rfc5424_logging_handler-1.4.3-py2.py3-none-any.whl
Keywords: python, logging, handler, syslog, rfc5424
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pygelfProvides Python logging handlers that send log…
permissive · top 15,000 on PyPI
python-logging-lokiA Python logging handler that sends log records…
permissive · top 5,000 on PyPI
python-logstashSends Python log records to Logstash over UDP…
permissive · top 15,000 on PyPI
python3-logstashA Python logging handler that forwards log…
permissive · top 15,000 on PyPI
json-loggingConfigures Python's standard logging module to…
permissive · top 5,000 on PyPI
ws4pyws4py implements the WebSocket protocol (RFC…
permissive · top 15,000 on PyPI
google-cloud-appengine-loggingClient library for Google Cloud AppEngine…
permissive · top 1,000 on PyPI
glogA simplified Google-style logging wrapper that…
permissive · top 15,000 on PyPI
loki-logger-handlerA logging handler that sends Python log…
permissive · top 15,000 on PyPI