On Tue, Feb 24, 2015 at 10:33 AM, Stefan G. Weichinger <li...@xunil.at> wrote:
> Maybe I could set up some other web-app that (a) looks at the link
> pointing to the postfix.service-logs and (b) filters them?
>
> I could post to the systemd-devel-ml ... btw ;-)
>

Seems like there should be a systemd-users mailing list, actually.
This sort of situation is completely distro-agnostic.

You certainly could design such an application.  If you do so I'd
consider pulling the journald logs in JSON format.  I'd also see if
somebody actually has written a journald library/class/etc for your
language of choice - it seems like that is the sort of thing that is
likely to exist soon if not already.  One of the goals journald (and
systemd) is to provide more of an API for services so that there is
less parsing of text files and communicating via signals/etc.  I'm
sure with appropriate permissions a process could just obtain log
entries via dbus, and using cursors poll for new entries (or maybe
there is a push/stream mechanism).

Really though it seems like the solution is a generic log monitor with
rules for such things, with the monitor utilizing the JSON data from
journald for richer metadata/efficiency/accuracy.

-- 
Rich

Reply via email to