My journalctl
is littered with gnome-session
warnings. I've tracked down the issue to Google Chrome, and the warning is relatively harmless. However, it's flooded my journal output, and frankly I won't be able to find what I need if I do need to check it.
May 30 12:13:49 hostname gnome-session[1347]: Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
Frankly, it's a Chrome issue and I'll leave it at that. But is there a way to make the journalctl
command suppress output from a certain process? I'd like to just disable gnome-session
logging altogether.
As of systemd 256, there is the -T
/--exclude-identifier
option to filter out a specific unit without having to pipe to grep or other external tools. To filter out gnome-session:
journalctl --exclude-identifier gnome-session
This is what the journalctl man page says about it
-T, --exclude-identifier=SYSLOG_IDENTIFIER Exclude messages for the specified syslog identifier SYSLOG_IDENTIFIER. This parameter can be specified multiple times. Added in version 256.