[systemd-devel] How to quiet cron sessions logging with systemd-212?

Leonid Isaev lisaev at umail.iu.edu
Mon Jun 9 08:28:45 PDT 2014


On Mon, Jun 09, 2014 at 10:48:31AM +0300, Leho Kraav wrote:
> Date: Mon, 09 Jun 2014 10:48:31 +0300
> From: Leho Kraav <leho at kraav.com>
> To: Reindl Harald <h.reindl at thelounge.net>,
>  systemd-devel at lists.freedesktop.org
> Subject: Re: [systemd-devel] How to quiet cron sessions logging with
>  systemd-212?
> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101
>  Thunderbird/24.5.0
> 
> On 09.06.2014 10:43, Reindl Harald wrote:
> >nobody cares because the developers point of view is that what is
> >interesting for them needs to be also faced by the sysadmin
> >
> >otherwise this would be only logged in debug-mode and bugreports
> >not closed: https://bugzilla.redhat.com/show_bug.cgi?id=1072368#c3
> >
> >frankly if that messages would at least have a prefix or a different
> >process than systemd one could filter them out with rsyslog.conf
> >without supress relevant boot messages
> >
> 
> Thanks for the info. I tried googling for this relatively hard, couldn't
> find that bug.
> 
> Language on that bug is probably counterproductive, but other than that,
> some reasonably sensible way should exist to simply stop logging crap, not
> relying on just output filtering.

What you see are authpriv-level logs, so it would be a really bad idea to
suppress them, regardless of their source.

Currently, journald doesn't provide any means of log processing, so your only
choice is to filter logs when viewing them using journalctl command line or
grep/awk; you can not control what is logged when and where.

If you want log processing (multiple log directories, advanced filtering,
etc.), use syslog-ng or rsyslog. For example, one can setup a special logfile
for systemd-related messages with a given syslog facility (authpriv, daemon,
etc.).

HTH,
-- 
Leonid Isaev
GPG fingerprints: DA92 034D B4A8 EC51 7EA6  20DF 9291 EE8A 043C B8C4
                  C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140609/0b6c539b/attachment.sig>


More information about the systemd-devel mailing list