Syslog Config Example

Cisco Syslog Configuration Example

Description:
The following is a simple example of setting up syslog messages from your Cisco device to a remote server. Syslog messages are helpful in the troubleshooting process and storing them off of your device helps for a few reasons. First, centralized management of multiple device; Secondly, protecting those messages from being wiped during a device reload. Customize the following configuration and use it where you need to enable syslog.

[divider]
[tabs]

[tab title=”View Configuration”]
View the configuration:


! Change HOSTIP in the next line to the server where you will collect syslog messages.
logging HOSTIP
! The following line currently commented out is another way to specify a server with more details.
! logging host 1.2.3.4 transport udp port 514
! Change level in the line below to the trap level number you want to use.
! Levels: Emergency: 0, Alert: 1, Critical: 2, Error: 3, Warning: 4, Notice: 5, Informational: 6, Debug: 7
logging trap LEVEL
! Set a source interface to where you want your device to send messages from, such as a MGMT Vlan.
logging source-interface VLAN50

[/tab]

[tab title=”Edit Configuration”]
Edit and Use:

[/tab]

[tab title=”Show Commands”]

  • show ntp status
  • show ntp associations
  • show clock

[/tab]

[/tabs]

[button color=”blue” size=”medium” align=”center” style=”lessround” target=”_blank” link=”http://www.ciscopress.com/articles/article.asp?p=426638&seqNum=3″ ]View More Documentation[/button]

Google+ Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*
*