Solved

syslog sychronization

Posted on 2003-11-28
3
336 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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.

919 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

16 Experts available now in Live!

Get 1:1 Help Now