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 Distribution
Hashes for syslog-rfc5424-parser-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff11d711d88d98538e1a0f1bd1a89449d3e88bc5abed66e3924b1a500869cb53 |
|
MD5 | b0a1f4bfc861d3c3ab7c0ee5196486ab |
|
BLAKE2b-256 | ddbefcb6ef9933f87e6b57c3e3a9fb78adc72d266091a4e8b077558469c663c9 |
Hashes for syslog_rfc5424_parser-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 994dbb7b138ff175dd2e2a09ae487af4875cd608de9dcec25622c9b96fc0aa78 |
|
MD5 | 768fa2b4ad3b9e5c51e3452497e73648 |
|
BLAKE2b-256 | 582b6c5b1dce7a29ad8caa35d452cdad66c22c380519d02d7be26d3893ba5106 |