Cisco Syslog Configuration Example
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.
! 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 18.104.22.168 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
- show ntp status
- show ntp associations
- show clock