Skip to content

Export in native journald format#10

Merged
bleggett merged 2 commits into
mainfrom
bleggett/export-format
May 20, 2026
Merged

Export in native journald format#10
bleggett merged 2 commits into
mainfrom
bleggett/export-format

Conversation

@bleggett
Copy link
Copy Markdown
Contributor

so that the export can be easily munged into any supported target format.

This export format can be immediately converted locally into either json or text, or converted back into the native binary indexed format journald uses for time-based filtering, etc.

Ex -> convert to text format:

journalctl -o cat < myexport.export

convert to json format:

journalctl -o json < myexport.export

convert to indexed binary format and do native journalctl filtering with systemd-journal-remote if you want

systemd-journal-remote --output=/tmp/myexport.journal < myexport.export
journalctl --file /tmp/myexport.journal --since "2026-01-01" --until "2026-01-02"

impls: #9

@bleggett bleggett requested a review from tycho May 20, 2026 17:12
Copy link
Copy Markdown
Member

@tycho tycho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea! Didn't know they had a native export format.

@bleggett bleggett merged commit d0beb7c into main May 20, 2026
2 checks passed
@bleggett bleggett deleted the bleggett/export-format branch May 20, 2026 17:31
bleggett added a commit to edera-dev/edera-check that referenced this pull request May 20, 2026
so that the export can be easily munged into any supported target
format.

This `export` format can be immediately converted locally into either
`json` or `text`, or converted back into the native binary indexed
format journald uses for time-based filtering, etc.

Ex -> convert to text format:
> journalctl -o cat < myexport.export

convert to json format:
> journalctl -o json < myexport.export

convert to indexed binary format and do native journalctl filtering with
`systemd-journal-remote` if you want

> systemd-journal-remote --output=/tmp/myexport.journal <
myexport.export
> journalctl --file /tmp/myexport.journal --since "2026-01-01" --until
"2026-01-02"

xref: edera-dev/edera-debug-report#10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants