replacing rsyslogd in minimal with journald [was Re: systemd requires HTTP server and serves QR codes]

Richard W.M. Jones rjones at redhat.com
Wed Oct 10 10:49:09 UTC 2012


On Wed, Oct 10, 2012 at 10:11:03AM +0000, "Jóhann B. Guðmundsson" wrote:
> On 10/10/2012 08:54 AM, Richard W.M. Jones wrote:
> >This would be essential for libguestfs tools to parse logs out of
> >guests (we do it now by reading /var/log/messages etc which has all of
> >the properties you state).
> 
> I'm not sure how you are doing this currently but for shutdown guest
> I assume you would mount then run something like
> 
> journalctl -D /path/to/journal/files | the script you use to parse the logs

The question is whether this works with different versions of journal
on the host and in the guest.  A typical case we have to deal with is
someone running a stable RHEL host, and Fedora guests
(ie. host version < guest version).

For RHEL 6 I guess this will involve backporting.  This is why stable,
well-documented formats like plain text are better.  That's not to say
however that the journal isn't possible to handle -- the format looks
like someone thought about this case to some extent, and we already
have to deal with undocumented binary formats like the Windows
registry and Windows event log.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top


More information about the devel mailing list