AI, and Network Operations and Management · Topic 6 of 6
Syslog Messages, Severity Levels and Facilities
Learn to interpret syslog messages: facility, severity and mnemonic, the eight severity levels, where logs go and how to read show logging on Cisco.
- 6 min
- Severity runs from 0 (emergencies) to 7 (debugging), and lower is more serious.
- A level setting includes that level and all more severe levels.
- Level 3 is errors, level 4 is warnings, level 5 is notifications, level 6 is informational and level 7 is debugging.
What it is
Syslog is how network devices report what is happening to them.
Each notable event, such as an interface change, a neighbor loss or a failed login, produces a short text message. Syslog decides where that message goes, and the message itself tells you what happened and how serious it is.
A device can send messages to several places:
- the console, the local management port
- a terminal session, when monitoring is turned on
- the buffer, memory on the device that holds recent messages
- a syslog server, a central system that collects logs from many devices
Syslog servers listen on UDP port 514 by default. Central collection matters because a device that fails or reboots can lose the messages held in its own memory.
Two ideas organize each message. The severity level says how serious it is. The facility says what part of the system produced it.
How it works
Every message carries a severity from 0 to 7, and the lowest number is the most serious.
Severity levels
| Level | Name | Meaning in short |
|---|---|---|
| 0 | Emergencies | System is unusable |
| 1 | Alerts | Act immediately |
| 2 | Critical | Critical condition |
| 3 | Errors | Error condition |
| 4 | Warnings | Warning condition |
| 5 | Notifications | Normal but significant event |
| 6 | Informational | Routine information |
| 7 | Debugging | Detailed debug output |
A memory aid: Every Awesome Cisco Engineer Will Need Icecream Daily.
A logging level includes that level and every lower number. Level 4 shows warnings, errors, critical, alerts and emergencies. Level 7 shows everything.
Level 7 is not the most serious. It is the most detailed. Level 0 is the most serious.
Reading a message
Look at a typical message:
*Mar 1 00:05:12.123: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to down
The part before the percent sign is the timestamp, and a leading asterisk means the device clock has not been set from a trusted source. After it, read the tag in three pieces separated by hyphens:
LINKis the facility, the subsystem that produced the message.3is the severity, here errors.UPDOWNis the mnemonic, a short code for the event.
The text after the colon describes the event in plain words. More examples:
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to down
%OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on GigabitEthernet0/1 from FULL to DOWN, Neighbor Down: Dead timer expired
%SYS-5-CONFIG_I: Configured from console by admin on vty0 (10.1.1.5)
Read together, the first two lines say the physical link failed (severity 3) and then the line protocol followed (severity 5). The third says the OSPF neighbor went down because it stopped sending hellos. The fourth records who changed the configuration and from where.
The facility in the protocol
When a message is sent to a server, it also carries a facility value that the server can use to sort it. These values come from a standard list that includes local0 to local7. A Cisco device uses local7 by default, and you can change it.
logging facility local4
The server can then file messages from different groups of devices separately.
Basic configuration
logging host 10.1.1.60
logging trap warnings
logging buffered 16384
logging console informational
service timestamps log datetime msec
logging hostsends messages to a syslog server.logging trapsets the most detailed severity that is sent to the server.logging bufferedstores messages in memory with a chosen size.logging consolesets the level shown on the console.service timestampsadds the time to each message.
logging trap has nothing to do with SNMP traps. On a Cisco device it controls the severity sent to a syslog server.
Defaults differ by destination:
- The console and terminal lines default to debugging.
- The syslog server threshold (
logging trap) defaults to informational. - Buffered logging is off until you configure it, and then defaults to debugging.
Set the levels yourself to be safe.
Checking the settings
Use show logging to see the destinations, their levels and the buffer. On a remote session, run terminal monitor to see messages live.
R1# show logging
Syslog logging: enabled
Console logging: level informational
Buffer logging: level debugging
Trap logging: level warnings
Logging to 10.1.1.60 (udp port 514)
Log Buffer (16384 bytes):
*Mar 1 00:05:12.123: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to down
Some lines are trimmed here. If expected messages never reach the server, check that the level allows them, that logging host has the right address and that UDP 514 is not blocked.
Common mistakes
Reading the numbers backwards. Level 7 is the most detailed, not the most serious.
Forgetting levels are inclusive. Setting a level shows that level and everything more severe.
Confusing facility with severity. In %LINK-3-UPDOWN, the facility is LINK and the severity is 3.
Thinking logging trap means SNMP. It sets the syslog server threshold.
Running level 7 on a busy device. Debug output can flood the console and slow the device.
What to remember for the exam
- Severity runs from 0 (emergencies) to 7 (debugging), and lower is more serious.
- A level setting includes that level and all more severe levels.
- Level 3 is errors, level 4 is warnings, level 5 is notifications, level 6 is informational and level 7 is debugging.
- A message has the form
%FACILITY-SEVERITY-MNEMONIC: text. - The facility names the source in the message and labels messages sent to a server.
- Syslog servers use UDP port 514.
logging host,logging trap,logging bufferedandlogging consoleset the destinations.show loggingshows settings and the buffer.
Check yourself
What do the three parts of
%SYS-5-CONFIG_Irepresent?SYSis the facility,5is the severity (notifications), andCONFIG_Iis the mnemonic, a short code for the event.How does a logging level of 4 differ from a level of 7 in which messages each hides?
Level 4 shows warnings and more severe messages, so it hides levels 5 to 7. Level 7 shows everything, so it hides nothing.
Name two places a message can be sent or stored, and say why a central server helps.
For example the buffer and a syslog server. A central server helps because a device that fails or reboots can lose the messages in its own memory.
Topic 6 of 6 in AI, and Network Operations and Management
Test yourself on AI, and Network Operations and Management
The full Cisco CCNA 200-301 v2.0 question bank has 1,242 questions, with timed practice exams and an explanation for every answer.
This study guide is independent and is not affiliated with, endorsed by, or sponsored by Cisco. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.