Skip to main content

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+.

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.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

journalparse-0.1.1-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file journalparse-0.1.1.tar.gz.

File metadata

  • Download URL: journalparse-0.1.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for journalparse-0.1.1.tar.gz
Algorithm Hash digest
SHA256 60f13d500294583651adb91bd1f9baaeb2d6704ffea03d0b9b30daabc39dccad
MD5 b21ece5d1436074a0d4ff3b90620074d
BLAKE2b-256 30aff78d748e60a7e95afc11f0474d2cb5fd6f66cdf4e3f4cbc91328df2f563b

See more details on using hashes here.

File details

Details for the file journalparse-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for journalparse-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a96de8ecf61ac3dacb1be4600c9d3e05c29005d9dfca5111c13a9a76668bb2d7
MD5 89a2e2f2e19950148a63baa3fc6fa576
BLAKE2b-256 d4f7c18b46a81b194371b7830c8eb5aef90e6df9acaf6e5fadb01b5c60716698

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page