How do I filter mail.info from /var/log/syslog (rsyslog.conf/Debian) while keeping messages greater than or equal to mail.warn?
I've tried just about every different variation of appending and prepending different combinations of mail, mail.info, mail.!info, mail.*, mail.warn, mail.!warn
, but apparently the docs are smarter than me.
Currently I'm at this, but alas, she's a no-go:
*.*;auth,authpriv.none;mail.warn,mail.!info -/var/log/syslog
Edit: I'm having a really hard time understanding the semicolon delimeter and how it "restricts" previous entries.
From the
man rsyslog.conf
page:So
mail.!info
means that you are ignoringinfo
priority and any higher priority. Try this:I found a couple of other variations to quanta's answer that also seem to work. I have an idea of why they work, but I'm not confident enough with rsyslog.conf's delimeters and operators to be able to say for sure. Hopefully they help someone else.
One.
Two.
Any comments on these from someone who knows better would be welcome.