syslog-rfc5424-parser 0.3.2
pip install syslog-rfc5424-parser
Released:
Parser for RFC5424-compatible Syslog messages
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: ISC License (ISCL) (ISC)
- Author: James Brown
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: ISC License (ISCL) (ISC)
- Author: James Brown
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
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
File details
Details for the file syslog-rfc5424-parser-0.3.2.tar.gz
.
File metadata
- Download URL: syslog-rfc5424-parser-0.3.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80a9239d4da404a271266000f4c5f00a183af3d03d53d19d7052c8272430bee9 |
|
MD5 | 85b2057cc715eb8997bede77f20e4fa0 |
|
BLAKE2b-256 | d57241a79804360b6c85665ecca2b477ac85a1ffdd28fca3e84591e5ef542d87 |
File details
Details for the file syslog_rfc5424_parser-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: syslog_rfc5424_parser-0.3.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6134ee1958da89ab7f8d32ed5370a49ddabcc99d75a950b6ec59708417f20a7a |
|
MD5 | 5d00ae345122e43a3d1cd008fe21c822 |
|
BLAKE2b-256 | 371ed9a9969174e3b28cae3e6dde024eedbaf66696d530377ede107c9495ffc2 |