On Wed, Oct 10, 2012 at 2:54 PM, drago01 <drago01(a)gmail.com> wrote:
On Wed, Oct 10, 2012 at 12:49 PM, Richard W.M. Jones
<rjones(a)redhat.com> wrote:
> 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).
Can't you run the journal from the guest? Or does this open another
can of worms?
s/journal/journalctl/