Expand description
Pure-Rust systemd journal reader and writer SDK.
This crate provides a public Rust layer over the imported Netdata journal reader/writer crates. It intentionally keeps the low-level file parsing in the imported implementation and adds byte-safe entries, directory reading, export/JSON formatting, and a libsystemd-style facade.
Modules§
Structs§
- Boot
Info - Bucket
Utilization - Hash table bucket utilization statistics
- Config
- Configuration for a journal log.
- Directory
Reader - Entry
- Entry
Timestamps - Explorer
Comparison - Explorer
Control - Explorer
Filter - Explorer
FtsPattern - Explorer
Histogram - Explorer
Histogram Bucket - Explorer
Progress - Explorer
Query - Explorer
Result - Explorer
Row - Explorer
Sampling - Explorer
Stats - Field
- File
Header - File
Reader - Journal
File - A reader for systemd journal files that efficiently maps small regions of the file into memory.
- Journal
Reader - Log
- Tracks rotation state for size and count limits.
- Mmap
- A handle to an immutable memory mapped buffer.
- Origin
- Origin identifies where a journal file comes from
- RawField
- Reader
Options - Retention
Policy - Controls when old journal files should be deleted.
- Rotation
Policy - Controls when journal files should be rotated
- SdJournal
Enums§
- Compression
- Direction
- Entry
Items Type - Explorer
Anchor - Explorer
Field Mode - Explorer
Stop Reason - Explorer
Strategy - Facade
Error - Field
Name Policy - Journal
Error - Location
- LogLifecycle
Event - Output
Mode - Reader
Bounds - SdkError
- Source
- Source of journal entries
- Writer
Error - Errors that can occur during journal writing operations.
Constants§
Traits§
Functions§
- SdJournal
AddConjunction - SdJournal
AddDisjunction - SdJournal
AddMatch - SdJournal
Close - SdJournal
Enumerate Available Data - SdJournal
Enumerate Available Unique - SdJournal
Enumerate Field - SdJournal
Enumerate Fields - SdJournal
Flush Matches - SdJournal
GetCursor - SdJournal
GetData - SdJournal
GetEntry - SdJournal
GetMonotonic Usec - SdJournal
GetRealtime Usec - SdJournal
GetSeqnum - SdJournal
List Boots - SdJournal
Next - SdJournal
Next Skip - SdJournal
Open - SdJournal
Open Directory - SdJournal
Open Directory With Options - SdJournal
Open File - SdJournal
Open File With Options - SdJournal
Open Files - SdJournal
Open Files With Options - SdJournal
Previous - SdJournal
Previous Skip - SdJournal
Process Output - SdJournal
Query Unique - SdJournal
Query Unique State - SdJournal
Restart Data - SdJournal
Restart Fields - SdJournal
Restart Unique - SdJournal
Seek Cursor - SdJournal
Seek Head - SdJournal
Seek Realtime Usec - SdJournal
Seek Tail - SdJournal
SetOutput Mode - SdJournal
Test Cursor - SdJournal
Visit Unique Values - export_
entry - export_
entry_ bytes - format_
entry_ text - json_
entry - parse_
cursor - parse_
match_ bytes - parse_
match_ string - verify_
file - Validate the structural integrity of a journal file.
- verify_
file_ with_ key - Validate the integrity of a journal file with a verification key.