Am 24.04.2015 um 12:21 schrieb Michael Biebl:
> An alternative to dropping the user messages, is to log them to a
> separate log file which has different log retention policies.

For completeness sake, this would look like this:

$ cat /etc/rsyslog.d/drop-user-messages.conf
user.* /var/log/user.log
& stop


The point here is, that those rsyslog.d snippets are included before the
rules in /etc/rsyslog.conf are processed. So you can log to user.log and
stop any further processing, i.e. avoid it ends up in syslog and messages.
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to