Journal API¶
JournalQuery¶
systemd_client.journal._query.JournalQuery
dataclass
¶
Parameters for querying the journal.
Source code in src/systemd_client/journal/_query.py
to_args()
¶
Build journalctl command-line arguments from this query.
Source code in src/systemd_client/journal/_query.py
AsyncJournalReader¶
systemd_client.journal._reader.AsyncJournalReader
¶
Async journal reader using journalctl subprocess.
Source code in src/systemd_client/journal/_reader.py
follow(q)
async
¶
Follow journal output as an async generator.
Source code in src/systemd_client/journal/_reader.py
query(q)
async
¶
Run a journal query and return all matching entries.
Source code in src/systemd_client/journal/_reader.py
JournalReader¶
systemd_client.journal._reader.JournalReader
¶
Synchronous journal reader wrapping AsyncJournalReader.