Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linux syslog server for cisco router

Status
Not open for further replies.

csross

MIS
Dec 21, 2003
92
0
0
US
I have a cisco 3640 router and I want to have the logging to a Linux computer. I already have the syslog statement in the cisco configuration but do not know what entries to make to have the logging on a linux computer. I see the syslog.conf but don't know the specific entry to make to have it go to a separate log file.

thanks
 
Ummmmm ..... this is a Sendmail Forum.

Cogito Ergo Sum - Non Compos Mentis
 
OK I feel guilty ... here's how you do it but please post correctly in future.
Add the following to your cisco router config (config mode)
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
Now type sh logging at an enable prompt (router)#
If console logging is turned on you need to turn it off or you may crash the router
(config)# no logging console
Do a sh logging again to make sure that console logging is turned off. Now you need to specify the syslog server.
(config)#logging 123.456.7.8 (address of syslog server)
(config)#logging buffered 10000 debugging
(config)#logging trap debugging
Do a wr mem or copy run start to write the config to memory
This is how you set up the Cisco side of things. Are you cool with setting up the syslog server or do you need some help ?

Cogito Ergo Sum - Non Compos Mentis
 
I think you have to do the following also in your server
/etc/syslog.conf file

local7.warn /var/log/local7.warn
local7.debug /var/log/local7.debug


Kill the syslog process and start it again.

Hope this will help.

While doing config in router use the debugging level as 7
or as per the desired one you want ...

With best regards,
WITHU
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top