LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-19-2005, 07:16 PM   #1
anurag1510
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
send log messages to another system


Hi,

I am trying to set up a centralized log server. I want the logs from all my systems to go to one particular server. So on the system that I intend setting up as a log server, I edited the /etc/sysconfig/syslog file to include the -r option in the following line:

SYSLOGD_OPTIONS="-m 0 -r"

However, I have another problem. I want to be able to send the logs of each system to a different file. How can that be done? Any help is greatly appreciated.

Thanks,
Anurag
 
Old 09-19-2005, 10:14 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The only way I'm aware of would be to output messages to a pipe to a process that can then separate them by host.
 
Old 09-20-2005, 07:51 AM   #3
anurag1510
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

Thanks for the response. I figured out that it cannot be done with the standard syslog.

- Anurag
 
Old 09-22-2005, 10:09 AM   #4
xaeniac
LQ Newbie
 
Registered: May 2005
Posts: 5

Rep: Reputation: 0
Can you please help? I modified my syslog.conf

*.* @X.X.X.X

I have also added a hostname and tried it here also. I am able to ping the syslog server just fine. I know it works as other machines (solaris boxes are sending data to it) I have restarted the syslog service along with rebooting the whole system.



What steps am i missing? Thanks in advance
 
Old 09-22-2005, 09:19 PM   #5
anurag1510
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

Have you configured the log server to accept logs? You would have to edit the /etc/sysconfig/syslog file to have the following line:

SYSLOGD_OPTIONS="-m 0 -r"
After that is done, you will have to restart syslogd

- Anurag
 
Old 09-27-2005, 12:57 PM   #6
xaeniac
LQ Newbie
 
Registered: May 2005
Posts: 5

Rep: Reputation: 0
I am not sure, but considering many other machines and cisco devices are sending logs to the syslog server, I would imagine so. Any other thoughts?
 
Old 10-03-2005, 08:53 AM   #7
xaeniac
LQ Newbie
 
Registered: May 2005
Posts: 5

Rep: Reputation: 0
bump
 
Old 10-11-2005, 06:19 AM   #8
banzai_slr
LQ Newbie
 
Registered: May 2005
Location: South Africa
Distribution: Fedora, Gentoo, CentOS & Solaris
Posts: 19

Rep: Reputation: 0
have you looked at netdump?
Netdump will allow you to send all syslog&console messages to a netdump server. Very handy if you experience a panic and the dozy sysadmin does not capture the trace
 
  


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
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
wierd messages in system log ambelos SUSE / openSUSE 2 03-16-2005 12:55 PM
strange system log messages ? deft Linux - Security 23 11-13-2004 09:47 AM
Multiple "device not ready" messages in System Log quasy Linux - Hardware 0 04-27-2004 05:58 AM
Send log messages to root (Like Slackware) jpc82 Linux - General 1 10-02-2003 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:29 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
Open Source Consulting | Domain Registration