Network Management Troubleshooting Tools: Syslog.

By | December 1, 2023

Network management tools such as Syslog and SNMP are very valuable tools to enable you to monitor the health of your network devices if properly configured.

If these tools have been misconfigured, you will not be able to gather the information you need while troubleshooting specific events or be notified of the time and date an event has occurred. Therefore, you need accurate time using a protocol such as NTP.

Syslog Troubleshooting

83% discount on VPN

To verify your Syslog configuration, confirm logging is enabled, and view the Syslog

messages stored in the buffer, you use the command show logging, as shown in the example below.

Example output:

When you need to troubleshoot, you need to be sure that Syslog is generating the right type of messages at the right time.

Syslog operation is by default; console, monitor, and buffer logging display messages with a very high level of debugging (7) and lower.

You may also know that logging into a server is disabled by default, but once enabled, all severity levels will be sent to the server. Therefore, in all cases, if you are not receiving the Syslog messages you expect, verify that the correct level is configured.

In the following example, the console and monitor are configured with a level of information, the buffer is configured with a level of debugging, and the trap logging (server) is configured with a level of warnings.

When you log into a server the correct server IP address needs to be specified and the server needs to be reachable.

Also, because Syslog uses UDP port 514, it is very important to make sure that all configured ACLs are disabled or not blocking traffic destined for UDP port 514.

The buffer normally has a default size of 8192 bytes. Once the buffer fills up, the older entries are overwritten by updates if any. Therefore, if you are using the buffer and experiencing a loss of Syslog messages, consider increasing the size of the buffer with the logging buffered size command or sending the messages to a Syslog server instead.

Finally, if you have remotely connected to a device via Telnet or SSH, and no Syslog messages are coming through, it could be because the terminal monitor command has not been issued.

syslogging in the network
sys logging in the network

How to verify Syslog Configuration

HQ# show logging

As you can see above; displaying and verifying log and debug messages stamped with a time is important for troubleshooting. If no timestamps are included, this could be that there were no service timestamps commands executed.

To configure time stamps, use the service timestamps [ debug | log ] [ datetime | uptime ] command.

The DateTime option will include the date and time the log or debug message occurred. Therefore, make sure you set an accurate calendar and time set. Use NTP for this.

The uptime option provides a time stamp based on the amount of time that has passed since the last reboot.