You can easily use shell scripting to separate the logs for the individual
routers.
We use something similar to the following:
echo Sorting Log Files:
cat /var/log/remote.log |grep routername >> /var/log/cisco/routername
rm -f /var/log/remote.log
killall -HUP syslogd
Hope this helps!
Scott Riley
Cisco Internet Engineer
Firstnet Services Ltd
W: http://www.firstnet.net.uk
[This message subject to: http://www.firstnet.net.uk/disclaimer.html]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Anh Lam
Sent: Friday, 19 October 2001 11:26
To: [EMAIL PROTECTED]
Subject: How to setup syslog server [7:23501]
Hi Everyone,
I am trying to setup a syslog server so that I can log messages from cisco
routers and switches. I am running this syslog on a Linux box.
Since syslog is a standard feature of unix/linux, I am pretty happy with it,
given my disdain for Microssoft.
By default syslog server on Linux refuses to accept remoting logging from
other devices other than itself. I modify this by turning on the
-r option. This make the Linux machine to accept remote logging.
My problem is that the syslog messages from Cisco routers and switches are
logged into the same file (/var/log/messages) that the Linux machines logs
its own system messages. How can I separate the messages between the two?
Thanks.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=23503&t=23501
--------------------------------------------------
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]