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

"J├│hann B. Gu├░mundsson" johannbg at gmail.com
Wed Oct 10 10:11:03 UTC 2012


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

And or use systemd-gateway for active guests as in

<https://jira.skyggnir.is/secure/admin/user/ViewUser.jspa?atl_token=B392-8G0S-SYQQ-21VP%7Ccbcceb6069c5f860c32629fc73971afb2f37df29%7Clin&name=haf-sbj># 
systemctl start systemd-journal-gatewayd.service

Then run

# wget http://localhost:19531/entries

To download the journal contents in a /var/log/messages compatible format

Or if you want to download it in JASON compatible format

# curl -H"Accept: application/json" http://localhost:19531/entries

If you simply want to browse the log file of an running guest you would 
just visit the http://IP:19531/browse <http://localhost:19531/browse> in 
your favorite browser

JBG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20121010/4b3b6987/attachment.html>


More information about the devel mailing list