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
Solved

syslog sychronization

Posted on 2003-11-28
3
338 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
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 Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

765 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