systemd/python-systemd

detect if the journal has been rotated?

jmcclelland opened this issue · 0 comments

I'm using the poll method to tail the journald log in real time. However, when the journal is rotated, I predictably stop getting the next event. I seem to be able to use the get_end() method to detect the end of the journal - so I can re-open the journal after a certain period of stale time. But I was wondering if there is a more reliably method for detecting that the journal has been rotated so I can re-open the journal right away?

Thanks for the helpful library!