A monitoring service that executes every minute requires sudo. With this my logs are full of pam_unix entries, telling me that this service logged in with sudo.
Now that I have journald on this machine, I thought maybe I could filter those logs, so that journald simply ignores them (by regex matching/other parameters).
I don't want to filter the output (I could do that with journalctl), I don't want those entries to be stored.
Is this possible with journald?
rsyslogdocs and it has a filtering concept, but for filtering to different files. I couldn't find anything in thersyslogdocs to indicate that it could be used for discarding the messages, but setting the file to/dev/nullmight work. – jordanm Feb 14 '16 at 22:48rsyslog. There is a discard action: http://www.rsyslog.com/doc/master/configuration/actions.html?highlight=tilde#discard – muru Feb 14 '16 at 22:52sudo/pam_unixmessages: – thom_nic Apr 17 '18 at 14:14