LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-14-2011, 09:44 AM   #1
Foobsy
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Rep: Reputation: Disabled
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,
 
Old 12-14-2011, 11:04 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Would this work : *.err;!user.err @remotehost
 
Old 12-15-2011, 03:49 AM   #3
Foobsy
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi.

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

Thanks.
 
Old 12-15-2011, 04:31 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Maybe: *.err;user.!=err @remotehost

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUSE linux 10 syslog-ng syntax problem rick20176 Linux - Newbie 1 04-20-2011 06:16 PM
[python] syntax Error : invalid syntax Python_user Programming 2 09-06-2009 12:52 PM
I need help getting syslog to log remotely, this is just the regular syslog. abefroman Linux - Software 2 06-05-2008 11:36 AM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 06:21 PM


All times are GMT -5. The time now is 07:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration