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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80a9239d4da404a271266000f4c5f00a183af3d03d53d19d7052c8272430bee9 |
|
MD5 | 85b2057cc715eb8997bede77f20e4fa0 |
|
BLAKE2b-256 | d57241a79804360b6c85665ecca2b477ac85a1ffdd28fca3e84591e5ef542d87 |
Hashes for syslog_rfc5424_parser-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6134ee1958da89ab7f8d32ed5370a49ddabcc99d75a950b6ec59708417f20a7a |
|
MD5 | 5d00ae345122e43a3d1cd008fe21c822 |
|
BLAKE2b-256 | 371ed9a9969174e3b28cae3e6dde024eedbaf66696d530377ede107c9495ffc2 |