Skip to main content

This module implements an RFC 5424 IETF Syslog Protocol parser in Python, using the lark parser-generator. It should work on Python 2.7 or Python 3.3+.

Build Status PyPI version Documentation Status

The file example_syslog_server.py contains a fully-functional Syslog server which will receive messages on a UNIX domain socket and print them to stdout as JSON blobs.

A word on performance

On a fairly modern system (Xeon E3-1270v3), it takes about 230µs to parse a single syslog message and construct a SyslogMessage object (which is to say, you should be able to parse about 4300 per second with a single-threaded process). Are you really in that much of a rush, anyway?

If you're interested in a faster, non-Python alternative, you may also enjoy rust-syslog-rfc5424.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

syslog-rfc5424-parser-0.3.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

syslog_rfc5424_parser-0.3.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file syslog-rfc5424-parser-0.3.2.tar.gz.

File metadata

  • Download URL: syslog-rfc5424-parser-0.3.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for syslog-rfc5424-parser-0.3.2.tar.gz
Algorithm Hash digest
SHA256 80a9239d4da404a271266000f4c5f00a183af3d03d53d19d7052c8272430bee9
MD5 85b2057cc715eb8997bede77f20e4fa0
BLAKE2b-256 d57241a79804360b6c85665ecca2b477ac85a1ffdd28fca3e84591e5ef542d87

See more details on using hashes here.

File details

Details for the file syslog_rfc5424_parser-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: syslog_rfc5424_parser-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for syslog_rfc5424_parser-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6134ee1958da89ab7f8d32ed5370a49ddabcc99d75a950b6ec59708417f20a7a
MD5 5d00ae345122e43a3d1cd008fe21c822
BLAKE2b-256 371ed9a9969174e3b28cae3e6dde024eedbaf66696d530377ede107c9495ffc2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 files

0.3.1

2 files

0.3.0

3 files

0.2.0

3 files

0.1.6

3 files

0.1.5

3 files

0.1.4

2 files

0.1.3

1 file

0.1.1

1 file

0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page