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+.
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
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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be56552e8aa593c5188aa787244bafacfbc8da20ba079192b42c5c9f63748baf |
|
MD5 | 7b23de2f1fa379b7a07a5a68ea218d00 |
|
BLAKE2b-256 | d99a732bdc118b636af825e5b34d2450019f94a6a0dcee4bbd42400d753ff02c |
Hashes for syslog_rfc5424_parser-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41c93b80fab8af7a07730f98d149444dd1b1735406030670f4e20f049da9de96 |
|
MD5 | 17420f5d9cf55ae12c46a7ca2da2fa76 |
|
BLAKE2b-256 | bc3253be43157aaf84883e7cb34ba6247afd887a600563f272ff117bb2b84fea |
Hashes for syslog_rfc5424_parser-0.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b99f1559bfc912a8f3a57f4c9cbf7f851ac77c1b46dd6f2a6ad2ae8f5ea47c85 |
|
MD5 | 9263f429493acbfda81cf6d90261bef1 |
|
BLAKE2b-256 | c0a10d0b21ee478bf25e9b0efd330322cc760e2a2e51d17dcc11c593ac0fb0db |