PDA

View Full Version : 16.04 upgrade - systemd log spam - disable?



tk421storm
January 28th, 2017, 09:41 PM
Hey all -

I've recently upgraded from 14.04 to 16.04 LTS, and I'm working on the transition from upstart to systemd. For some reason it seems like the default is for systemd to boot up in debug mode, which is absolutely hammering my syslog (~9000 messages in a few seconds). I cannot figure out how to change the log level of systemd - I've tried editing the /etc/default/grub file, which started like:

GRUB_CMDLINE_LINUX_DEFAULT="verbose debug"

I've tried both of these alternatives, with no change:

GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX_DEFAULT="systemd.log_level=notice"

Unfortunately neither of those work. I'm just looking to permanantly change the debug level for systemd.

Thanks!

tk421storm
February 7th, 2017, 04:05 PM
Disappointing that no one else had this problem, guess it's something weird with my setup.

Anyway, the following filters in rsyslog.conf cleared out all the garbage:

if $syslogtag contains_i 'systemd' and $syslogseverity-text contains_i 'debug' then ~
if $msg contains_i 'systemd-journald' and $syslogseverity-text contains_i 'debug' then ~

That should just filter the debug, but keep everything above info, which is much more tolerable.