LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2011, 01:15 PM   #1
tonj
Member
 
Registered: Sep 2008
Posts: 384

Rep: Reputation: 24
logging mail.log to remote machine


I can't get syslog to work in logging to a remote machine. I have a linux (centos4) client machine at nottingham which I'll call nottingham.com and another duplicate machine in derby which I'll call derby.com. The machine at nottingham creates a mail log in /var/log/ and I want to duplicate this log on the derby machine. I've tried loads of different configs in syslog.conf but nothing works. How do I tell the nottingham machine to send a duplicate of just the mail log and how do I tell the derby machine to log it? I've googled several pages about this but I can't get it to work. I've watched the derby.com machine in wireshark and I can see it receiving syslog stuff from the nottingham machine but nothing appears in the derby.com log.
 
Old 12-18-2011, 04:31 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Have you changed the startup options in /etc/sysconfig/syslog on derby.com ?
 
Old 12-18-2011, 04:36 PM   #3
tonj
Member
 
Registered: Sep 2008
Posts: 384

Original Poster
Rep: Reputation: 24
yes, I've made some progress. I can get the remote machine logging to the server machine but the logs are mixed together. I specifically want to send the mail log of the nottingham machine, it's sending the data fine but it's mixed up with the mail log of the derby machine. I'd like to keep it seperate but there seems no way to do that that I can see...
 
Old 12-18-2011, 05:51 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
You might need to move to syslog-ng on the central server, it will expand $HOST to generate host specific log file destinations.
 
  


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
data shift from 1 remote machine to another remote machine raheelch General 7 03-09-2010 09:44 AM
How can I start VirtualBox on a remote machine and log out from the terminal? crisostomo_enrico Solaris / OpenSolaris 2 08-09-2008 04:02 AM
Log on to a remote windows account when starting a Linux machine bothy Linux - Newbie 3 11-16-2005 05:47 AM
logging into remote machine with root id tuxfood Linux - General 2 08-08-2005 08:15 AM
pppd logging to /var/log/ppp.log problem mrtwice Linux - Software 1 01-10-2004 06:38 PM


All times are GMT -5. The time now is 10:30 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