Install systemd journalctl to ignore the process

Mine is journalctlmarked with warnings gnome-session. I found the problem in Google Chrome, and the warning is relatively harmless. However, he flooded my issue of the magazine, and frankly, I can’t find what I need if I 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, this is a Chrome issue, and I will leave it to that. But is there a way to make a command journalctlsuppress output from a specific process? I would just like to turn off logging gnome-session.

+4
source share
1 answer

This question seems to be better suited for Unix and Linux .

, , grep -v ( grep --line-buffered),

journalctl -f | grep --line-buffered -v "gnome"

, . ctct .

JARGS=`journalctl -F _COMM | sed -e 's/gnome.*//' -e 's/^/_COMM=/' | xargs`
journalctl -a -f $JARGS

, , gnome, $!gnome. Woot!

systemctl journalctl /. >


( - gnome-session) , .

journald.conf

  • .
    Storage= ( ).
    sudo mkdir -p /var/log/journal
  • .
    MaxRetentionSec=1week

, systemd-journald.service.

journalctl -a -b -f $JARGS # -b to limit to current boot 

, , gnome-session.

+3

Source: https://habr.com/ru/post/1542694/


All Articles