4.5 Describe syslog, including facilities and severity levels
CCNA 200-301 v1.1 · 4.0 IP Services
Every Cisco device writes events as syslog messages: an interface going down, a neighbor coming up, a configuration change. For the CCNA you read a message, know the eight severity levels, understand what a facility is, and send the right messages to the right places.
What you must know
- Read the parts of an IOS log message: timestamp, facility, severity, mnemonic, text.
- Recite the eight severity levels from 0 to 7.
- Explain how setting a level includes everything more severe.
- Send logs to the console, the buffer, terminal sessions and a syslog server.
Reading a message
*Nov 1 21:04:17.123: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to downLINEPROTO is the facility (the part of IOS that logged it), 5 the severity (notification), UPDOWN the mnemonic. On a syslog server, the facility field also classifies messages by source (local0 to local7 for network devices), so the server can file them separately.
Severity levels
| Level | Keyword | Example |
|---|---|---|
| 0 | emergencies | System unusable |
| 1 | alerts | Immediate action needed |
| 2 | critical | Critical condition |
| 3 | errors | Error condition |
| 4 | warnings | Warning |
| 5 | notifications | Normal but significant (interface up/down) |
| 6 | informational | Informational (ACL log hits) |
| 7 | debugging | Debug output |
A memory aid: Every Awesome Cisco Engineer Will Need Ice cream Daily. Setting a level sends that level and every lower number: logging trap warnings sends 0 to 4.
Where logs go
service timestamps log datetime msec
logging buffered 64000 informational
logging console warnings
logging monitor debugging
logging host 10.0.50.20
logging trap notifications
logging source-interface Loopback0SW1's interface event reaches the server (1), where messages from every device are kept, searched and correlated. Messages only show on an SSH session after terminal monitor.
Commands
show logging | Logging settings for each destination and the buffered messages. |
terminal monitor | Shows log messages in the current SSH or Telnet session. |
clear logging | Empties the buffer. |
Exam traps
- Lower number = more severe: 0 is emergencies, 7 is debugging.
- A level includes all more severe levels.
- Syslog uses UDP 514 by default.
- Log messages do not appear on VTY sessions without
terminal monitor.
Check yourself
- What severity is %OSPF-5-ADJCHG?
- 5, notifications.
logging trap 4is set. Is a level 6 message sent to the server?- No: only levels 0 to 4 are sent.
- Name the levels from 0 to 7.
- Emergencies, alerts, critical, errors, warnings, notifications, informational, debugging.
More topics in 4.0 IP Services
- 4.1 Configure and verify NAT for inside hosts using static mappings and address pools
- 4.2 Configure and verify NTP clients and servers
- 4.3 Explain what DHCP and DNS do for hosts
- 4.7 Explain QoS per-hop behavior: classification, marking, queuing, congestion handling, policing, shaping
- 4.8 Configure and verify remote device access with SSH
- 4.9 Describe what TFTP and FTP do on a network