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.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ecf71c8e1e964412f1c40c88dad4b7663bd9ea48c8391a7c4473275910168cd |
|
MD5 | bf4ce50cd445e742170af096ff6f739d |
|
BLAKE2b-256 | 5da8521773e505af4b3ec2a01f86093ce7b2be368b35b20e7eb6bdf9207acae5 |
Hashes for syslog_rfc5424_parser-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eb1d6625978bb0283e47de5a5d02891191aa6e1ed10213e9386928d278bc51a |
|
MD5 | 53835de00915c389b28e7ae05b1e682e |
|
BLAKE2b-256 | 72032d874fc3b1ecc45f83f7877e57ce65b5153e3317db48ca0c4ca01c03d0cb |
Hashes for syslog_rfc5424_parser-0.1.6-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f058a3a3639fe2c13cf5d418ddd2c0a6a8c9002fc9f98b5e3d9239a03ef71fae |
|
MD5 | cb27507d8ea7aef7f6e483ce429813f6 |
|
BLAKE2b-256 | 8d9bc3ab6d8daf80e24019e17ea819bbdfbc23711ada0f30a90298ffddca696f |