LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-10-2011, 09:35 AM   #1
markseger
Member
 
Registered: Jul 2003
Posts: 242

Rep: Reputation: 26
logging to 2 syslog servers


I'm guessing its possible but I can't seem to find any documentation on how to do this. I've tried playing with entries at the top of my syslog.conf file like:

*.* @172.20.10.1 # 1 server, works file
*.* @172.20.10.1,172.20.20.11 # doesn't work
*.* @172.20.10.1 172.20.20.11 # nor this
*.* @172.20.10.1,@172.20.20.11 # nor this
*.* @172.20.10.1 @172.20.20.11 # nor this

-mark
 
Old 03-10-2011, 10:40 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392
Hi,

Have you tried:
Code:
*.* @172.20.10.1
*.* @172.20.20.11
All the rules in the configuration file are checked, it does not stop checking once a match is found.

Hope this helps.
 
Old 03-10-2011, 11:40 AM   #3
markseger
Member
 
Registered: Jul 2003
Posts: 242

Original Poster
Rep: Reputation: 26
now I feel silly, that's the one thing I didn't think of. I guess I just figured it'd stop at the first match.
works like a champ now.
-mark
 
Old 03-10-2011, 11:45 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392
Hi,

Sometimes it does stop at the first match (/etc/hosts file being an example).

Anyway, glad to see you got it working. Can you put up the [SOLVED} tag ?(first post -> Thread Tools).
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
syslog-ng -> syslog-ng logging, how to troubleshoot sir-lancealot Linux - Server 1 01-24-2009 06:07 AM
LXer: OpenLDAP Quick Tips: Using syslog or syslog-ng with slapd for OpenLDAP logging LXer Syndicated Linux News 0 11-14-2008 08:41 PM
syslog-ng is not logging coreno Linux - Software 4 09-08-2007 01:13 PM
Using syslog-ng to for application logging nathan2225 Programming 1 05-21-2007 10:55 AM
Logging/syslog s0n|k Linux - Newbie 2 03-13-2006 07:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration