Cisco TCP Syslog – Problems with TCP-Syslog on Cisco Devices

ciscosyslogtcp

I'm planning to move from UDP-Syslog to TCP-Syslog on some Cisco switches (for example WS-C3560X-24P with 15.0(2)SE9 installed).
But in Cisco documentation I'm not able to find any hint on what happens if a syslog server has a "problem" or is not available?
Does the switch queue the syslog messages? Or does it drop the messages?
Could it be service affecting, if a "buffer" runs full with syslog messages on the device?

Any help?

Thank you in advance!

Best Answer

As far as I could see, there is no Cisco document that describes what happens in the scenario that you mention.

But even if there was such a document, you would be best advised to verify the behaviour for yourself, with your device and software version, because syslog is such an important component.

Here is how I would verify it:

  1. Configure and verify the basic functionality
  2. Configure "logging buffered 4096" (the default)
  3. Write an EEM applet to emit a syslog message every second. Make the text somewhat long (say more than 256 characters), just to check for truncated syslogs.
  4. Start the applet and verify that the syslog host is receiving the logs
  5. Now disconnect the syslog host (by physically unplugging the ethernet cable from the host machine). Don't shutdown the host or do anything that might cause the TCP session to be FIN'd. You might also want to verify that the management interface on the 3560 (where you are presumably sending the syslogs from) stays up.
  6. Wait for long enough to fill the 4096-byte logging buffer. If you are logging 256 bytes every 1 second, that would be a 16 second wait. Wait for a few more seconds just to be sure.
  7. Now reconnect the syslog host
  8. See if the syslogging resumes at all, or whether some manual intervention is needed on the 3560 side to make sure the syslogging resumes
  9. Now check for what happened to the logs that were transmitted during the 16 second window. Use the timestamps to check which, if any, messages were dropped.

In an enterprise network, packet drops in the management network are less likely than a complete outage of the syslog server, so the test procedure above is a simulation of a real-life use case.