Skip to main content

Parser for RFC5424-compatible Syslog messages

Project description

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

Build Status PyPI version

The file example_syslog_server.py contains a fully-functional Syslog server which will receivemessages 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 700µs to parse a single syslog message and construct a SyslogMessage object (which is to say, you should be able to parse about 1400 per second with a single-threaded process). Effectively all of the time is spent in pyparsing, and packrat only makes it worse. Are you really in that much of a rush, anyway?

Project details


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.2.0.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distributions

syslog_rfc5424_parser-0.2.0-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

syslog_rfc5424_parser-0.2.0-py2-none-any.whl (5.7 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page