[systemd-devel] python - reading the journal

Lennart Poettering lennart at poettering.net
Tue Feb 12 19:36:14 PST 2013

On Sun, 03.02.13 21:18, Steven Hiscocks (steven-systemd at hiscocks.me.uk) wrote:

> Hi,
> I've been developing a python module for accessing the journal,
> using the journal API. (https://github.com/kwirk/pyjournalctl)
> One issue I've had is with 'sd_journal_seek_monotonic_usec'. When
> called, followed by call to 'sd_journal_next', I end up at the start
> of the journal.

Which boot id argument did you pass to sd_journal_seek_monotonic_usec?
You need to pass a valid one, otherwise it will seek to the "closest"
area, which might be the head actually


Lennart Poettering - Red Hat, Inc.

More information about the systemd-devel mailing list