Solved

syslog sychronization

Posted on 2003-11-28
3
340 Views
Last Modified: 2013-12-16
Dear all,

   I've 3 linux machines, A, B, C. How should I implement the following:
Event recorded in Syslog of machine A will also send to mahine B and C such that the syslog of B and C will also record down the event.Thank you very much!


0
Comment
Question by:hpchong7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 50 total points
ID: 9835862
Hi hpchong7,

in /etc/syslog.conf file of machine A, comment all lines and all these two lines

*.*    @IP_ADDRESS_OF_B
*.*    @IP_ADDRESS_OF_C

This will cause the log messages at A to be sent to B and C ... No messages would be recoreded at A .. If you want to store messages on A too, then do not comment out the existing lines... just add the above two lines

restart syslogd on all three machines with -r option

/etc/init.d/syslog stop
/sbin/syslogd -r
/sbin/klogd

Cheers!
Sunny:o)
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9835904
try to look for
syslog-ng (http://www.balabit.hu/products/syslog-ng/)
Also look at nsyslogd too(http://coombs.anu.edu.au/~avalon/nsyslog.html
on your logging system
============================
Logging to network is done like this.
On remote machine run syslog with option -r to make it listen for messages incomming from network. Make sure that /etc/services on both machines contains entry for syslog's port. It should look like this:

syslog     514/udp

Then replace syslog.conf on local machine with one looking like this:

*.*     @remote

This will instruct local syslog to send all logs to syslog on remote.

On remote machine setup your syslog.conf in the way you like.
(all logs in one file, or separate files for mail, warn, kern...).

And read 'man syslog' again
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 9840139
In this case it's not necessary to look for any alternative syslog programs. The standard syslog that comes with pretty much any Linux distribution is more than capable of supporting this use case.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question