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:
1. Syslog Severity Levels
Section titled “1. Syslog Severity Levels”| Value | Severity | Description |
|---|---|---|
| 0 | Emergency | System is unusable. A panic condition. |
| 1 | Alert | A condition that should be corrected immediately. |
| 2 | Critical | Critical conditions, such as hard device errors. |
| 3 | Error | Error conditions. |
| 4 | Warning | Warning conditions. |
| 5 | Notice | Normal but significant conditions. |
| 6 | Informational | Informational messages. |
| 7 | Debug | Messages 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
2. Configuration
Section titled “2. Configuration”Disables logging in the console line
R1(config)# no logging consoleEvents with severity level informational and higher will be logged to the VTY lines
R1(config)# logging monitor 6Events with severity level 7 and higher will be logged to the buffer
R1(config)# logging buffered debuggingConfigure Syslog monitoring to an external server
R1(config)# logging ip-addressor
R1(config)# logging host ip-addressConfigure the level of Syslog messages sent to an external server
R1(config)# logging trap levelDisplay the messages for the current session when conected via Telet/SSH
R1(config)# terminal monitorEnable timestamps for Syslog log messages
R1(config)# service timestamps log datetimeEnable secuence numbers for Syslog messages
R1(config)# service sequence-numbers3. Syslog & SIEM
Section titled “3. Syslog & SIEM”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.