systemd/python-systemd

Logs between two dates

GreatBahram opened this issue · 4 comments

Hello there,

I want to get logs only between two specific dates, how should I achieve that?

Thanks

@keszybz do you have any idea?

It is described in the manual. See the --since and --until options.

I was asking about the python binding, not journalctl.
By the way, I found the information by reading the journalctl's source code. I think you guys should work on the documentation. It is really hard for someone who tries to use this binding. Adding just a couple of examples about retrieving logs would be sensational.

Ah, sorry, I didn't look at the URL.