skillfed

rfc5424-logging-handler

An up-to-date, RFC5424-Compliant syslog handler for the Python logging framework

rfc5424-logging-handler v1.4.3 87.9K downloads/30d#13,763 on PyPI51
Permissive license BSD Abandoned released

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-handler

uv

uv add rfc5424-logging-handler

poetry

poetry add rfc5424-logging-handler

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Logging

Tags

rfc5424 syslog loggingpython syslog handlerrfc 5424 compliant loggingsyslog tls ssl supportstructured syslog loggingpython logging to syslog
syslogrfc5424logging-handler

More Python Modules packages