Skip to content
Portfolio

Syslog

Syslog is a standard format for logging messages. Cisco devices implement syslog. A syslog is generated when something happens in the device.

The format of the message is:

Syslog message format Syslog message format
ValueSeverityDescription
0EmergencySystem is unusable. A panic condition.
1AlertA condition that should be corrected immediately.
2CriticalCritical conditions, such as hard device errors.
3ErrorError conditions.
4WarningWarning conditions.
5NoticeNormal but significant conditions.
6InformationalInformational messages.
7DebugMessages that contain information normally of use only when debugging a program.

Syslog messages can be logged to various locations:

  • Console line
  • VTY Terminal lines (not enabled by default)
  • The logging buffer (events saved in RAM, you can view them with show logging)
  • External Syslog servers

Disables logging in the console line

R1(config)# no logging console

Events with severity level informational and higher will be logged to the VTY lines

R1(config)# logging monitor 6

Events with severity level 7 and higher will be logged to the buffer

R1(config)# logging buffered debugging

Configure Syslog monitoring to an external server

R1(config)# logging ip-address

or

R1(config)# logging host ip-address

Configure the level of Syslog messages sent to an external server

R1(config)# logging trap level

Display the messages for the current session when conected via Telet/SSH

R1(config)# terminal monitor

Enable timestamps for Syslog log messages

R1(config)# service timestamps log datetime

Enable secuence numbers for Syslog messages

R1(config)# service sequence-numbers

A basic Syslog server provides a centralised location for Syslog logging messages. A Security Information and Event Management (SIEM) is a more advanced system that will also typically provide advanced analysis and correlation of events.