A Python parser for the journald binary export format
Project description
This is a really simple Python parser for the journald binary export format.
It can parse journal entries from a file-like object or an iterable, and yields each entry as a dict containing all attributes of the journal entry:
from __future__ import print_function # if using Python 2.x from journalparse import journalparse with open("some_file", "rb") as fp: for entry in journalparse(fp): print(entry) # ... or ... data = b"_MESSAGE=blah" for entry in journalparse(data): print(entry)
There are no requirements other than Python. Tested on Python 3.5 but should work on Python 2.6+ and 3.2+.
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
journalparse-0.1.0.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for journalparse-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ad8e6f5ed0840eccde6c0c0f18e180f34018d59071ff97357fbc0d0b2cd850d |
|
MD5 | 249e4692c8c23f8b69936fa4be4eaf75 |
|
BLAKE2b-256 | 4da814e8848493b52ce77f8792daebbbb6a76a6b1332c61c54e3d50a78dffad2 |