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
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to