Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Release History

Release History

This version
History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
journalparse-0.1.1-py2.py3-none-any.whl (3.7 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Jan 14, 2016
journalparse-0.1.1.tar.gz (2.2 kB) Copy SHA256 Checksum SHA256 Source Jan 14, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting