LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   syslog syntax (https://www.linuxquestions.org/questions/linux-general-1/syslog-syntax-918701/)

Foobsy 12-14-2011 09:44 AM

syslog syntax
 
I want to send all syslog err messages to a remote host with the exception of user.err. To send everything I'd simply use;

*.err @remotehost

but how do I exclude user.err from this? Modifiers are for use with the severity not the facility. How do I exclude a specific facility? Do I need to list individual facilities with the exception of user to sent to the remote host? i.e.

auth.err,daemon.err, etc @remotehost

Thanks,

Cedrik 12-14-2011 11:04 AM

Would this work : *.err;!user.err @remotehost

Foobsy 12-15-2011 03:49 AM

Hi.

The solution won't work. It just stops everything going to the remotehost.

Thanks.

Cedrik 12-15-2011 04:31 AM

Maybe: *.err;user.!=err @remotehost

or: *.err;user.none @remotehost (but in this case, none of user.* log will be sent)


All times are GMT -5. The time now is 05:37 PM.