Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 618 Bytes

rsyslog-strip.md

File metadata and controls

25 lines (16 loc) · 618 Bytes

rsyslog strip

how to

  • edit /etc/rsyslog.d/50-default.conf inserting commands ( see below )
  • service rsyslog restart

strip messages by program name

Example: strip from log all messages that cames from "gnome-shell" program

:programname, contains, "gnome-shell" ~

strip messages by message content

:msg, contains, "somemessage" ~

reference