Solved

syslog sychronization

Posted on 2003-11-28
3
335 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now