Bug 988100 - RFE: journal reader in guestfish
Summary: RFE: journal reader in guestfish
Keywords:
Status: NEW
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-24 18:01 UTC by Matthew Miller
Modified: 2021-04-19 10:35 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Matthew Miller 2013-07-24 18:01:32 UTC
It would be cool if I could mount an image with systemd journal logs and easily view those logs in guestfish -- basically, a built-in journalctl.

Comment 1 Richard W.M. Jones 2013-07-24 18:30:51 UTC
Yeah, I briefly talked to Lennart about how to do this.  Luckily
the journal format is backwards compatible (and semi-forwards
compatible too), and there's a sane library for reading it:

http://www.freedesktop.org/software/systemd/man/sd_journal_open_files.html

One option is to add this API to the libguestfs API (rather
like how hivex is done now).

Another is to have some guestfish command to download the journal
files into a temporary directory and run journalctl -D on it,
although this would be rather slow.

Simple matter of programming :-)

Comment 2 Richard W.M. Jones 2013-07-29 09:17:38 UTC
Some support has been added to the API now:

https://github.com/libguestfs/libguestfs/commit/5cb7f294f6a5a8b4a68e940c30ca9af0fe0741d5
(in libguestfs >= 1.23.11)

It would be nice to enhance guestfish further to add a journalctl-like
command for browsing the logs, so I'll leave this bug open for now.


Note You need to log in before you can comment on or make changes to this bug.