[systemd-devel] How to reduce systemd logging to syslog ?
Reindl Harald
h.reindl at thelounge.net
Mon Jul 21 01:14:26 PDT 2014
Am 21.07.2014 03:10, schrieb surfer at emailengine.net:
> On Sun, Jul 20, 2014, at 05:31 PM, Zbigniew Jędrzejewski-Szmek wrote:
>> 2. tell systemd to log less with 'systemd-analyze set-log-level notice'.
>
> Won't that lower the log level 'into' the journal as well?
hopefully
> I'm happy to have that populated with a high level of detail -- I just
> don't want 'noisy' info in my *syslog*
then edit rsyslog.conf and filter them
rsyslog becomes all data which are logged
but it can filter and journald can't
# systemd-logind not in /var/log/messages
:programname, isequal, "systemd-logind" -/var/log/secure
:programname, isequal, "systemd-logind" ~
:msg, contains, "Starting Session" ~
:msg, contains, "Started Session" ~
:msg, contains, "Stopping Session" ~
:msg, contains, "Stopped Session" ~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140721/1a9e9592/attachment.sig>
More information about the systemd-devel
mailing list