Skip to content

How to get the start and end date of journal files in Python? #84

@GreatBahram

Description

@GreatBahram

Hello there,
I was reading the journalctl source code and realized there is this sd_journal_get_cutoff_realtime_usec which provides the start and end date of journal files, How can I get that result in Python?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions