[systemd-devel] journalctl export output
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Wed Jan 11 20:48:20 UTC 2017
On Wed, Jan 11, 2017 at 09:19:28PM +0530, Renjith Vijayan wrote:
> Hi,
>
> I am exporting the journal logs in json format and redirecting it to file
> with extension as ".journal".
> But the exported file when given an input using "--file" argument to
> journalctl command, it is not accepting the format.
>
> Is there any way to export journal logs with all the meta data to a file
> and read it back using the journalctl command later?
Yes. See the "Journal Export Format" [1]. 'journalctl -o export' will
write it, and systemd-journal-remote will convert it back to a binary
journal file.
[1] http://www.freedesktop.org/wiki/Software/systemd/export
Zbyszek
More information about the systemd-devel
mailing list