Parser for RFC5424-compatible Syslog messages
Project description
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+.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for syslog-rfc5424-parser-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eea184bec9281576b1894dabba0be6700bb75981a3daf7b79fa6c018c8b4b52e |
|
MD5 | 4c16296e1fa35706a066797b9d397802 |
|
BLAKE2b-256 | c64d470a57f21da39738f97eeb33c40b8b0e89c4fabc7afab16f59fb0ecffa7f |
Hashes for syslog_rfc5424_parser-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e28aa09a75d90a7f1b4ca5c84e9c9871f961e14c6978106869b6b1edc8c750b3 |
|
MD5 | 567db75caed0e11702a639af839b0927 |
|
BLAKE2b-256 | b5659b51949290cc61ae8c06f16e25502b2fc1817edc42fdf90fe1eeccc9fefd |
Hashes for syslog_rfc5424_parser-0.3.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb6863a6514043e7dbe9bf2a1e14c889f6af4c4d85cfd716d61da4d57d7a12c7 |
|
MD5 | e6164ae0e8dfe49cc816c060d30ba946 |
|
BLAKE2b-256 | de5e38e71ae5d138123e13b8f5562accf6974e96215b68576093c9b4686bd38f |