Skip to content
CCNA 200-301 v1.1 reference — IP Services

Syslog

Severity levels and inclusive logging thresholds, facilities, destinations and message format, with configuration and verification.

Objective 4.5v1.1 exam target

Severity levels

Syslog severity levels (lower = worse)

'Every Awesome Cisco Engineer Will Need Icecream Daily' — or your favorite mnemonic.
LevelKeywordMeaningMnemonic
0emergenciesSystem unusableEvery
1alertsImmediate action neededAwesome
2criticalCritical conditionCisco
3errorsError conditionErrors
4warningsWarning conditionWill
5notificationsNormal but significantNeed
6informationalInformational messageInvestigation
7debuggingDebug messagesDaily

'Every Awesome Cisco Engineer Will Need Icecream Daily' — or your favorite mnemonic.

What does `logging trap warnings` send?
Config
logging trap warnings
  1. warnings = level 4.
  2. Inclusive threshold → severities 0,1,2,3,4 go to the server.
  3. Notifications (5), informational (6), debugging (7) stay off the wire.

The keyword names the least-severe level still sent.

Facilities and destinations

Facilities and destinations

ConceptWhat it is
FacilityThe subsystem the message came from (e.g., %LINK, %OSPF, %LINEPROTO) — identifies the source component
SeverityThe 0–7 level after the facility in the message
consoleMessages to the console port
monitorMessages to vty sessions (after terminal monitor)
bufferedLocal memory log — show logging
trap/hostRemote syslog server on UDP 514

Severity thresholds are inclusive: logging trap 4 sends levels 0–4 (emergencies through warnings) — i.e., 'this severity and worse'. logging trap debugging sends everything. The same logic applies per destination: console, monitor (vty sessions), buffer (memory) and trap (remote server).

$ Anatomy of a syslog message
*Mar 1 00:12:31.421: %LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to administratively downTimestamp : %FACILITY-SEVERITY-MNEMONIC: text
%LINK-5-CHANGEDLINK facility, severity 5 (notification), mnemonic CHANGED.

Configuration and verification

Configure logging destinations

Log warnings+ to a server, notifications+ to console, info+ to buffer — Privileged EXEC → Global configuration

Cisco IOS / IOS XE

configure terminal
logging host 192.168.99.20
logging trap 4
logging console notifications
logging buffered 16384 informational
service timestamps log datetime msec
 end
Verify
show logging
  • Header lists each destination with its configured level.
  • Buffer shows timestamped messages at or above the buffered level.
  • terminal monitor on a vty session enables live messages; logging synchronous stops them from trashing your typing.

Changes device configuration.

Common mistakes

  • Reading thresholds as 'only this level' — they're inclusive of everything more severe.
  • Mixing up level numbers and keywords (6 is informational, not errors — errors are 3).
  • Assuming logging trap <level> is always mandatory — logging host can work with default trap settings on many images; set it explicitly for predictable, documented behavior.
  • Confusing facility with severity in a message — %LINK is the facility, 5 is the level.
  • Flooding console with debugging output — debug-level logging belongs at the server or buffer, not the console.
No messages reach the server

Observation: Syslog server configured; nothing arrives on the collector.

Hypotheses
  • logging trap level too restrictive — a smaller number sends fewer messages; a larger cutoff includes more
  • UDP 514 blocked on the path
  • Server address wrong or unreachable
CheckIndicates
show logging destination listConfirms the configured host and trap level.
Ping the server; check ACLs for UDP 514Path filtering silently drops syslog.
Raise trap level temporarily to debuggingIf messages now arrive, the issue was the threshold.

Correction: Fix level/path/address as indicated.

Events appear on the collector with correct timestamps.

On this page

Related resources

Sources

Targets CCNA 200-301 v1.1 objectives. Supplemental blocks are labeled beyond exam scope.

Search guided lessons, transcript chapters, flashcards, CLI drills and cheat sheets

Syslog | CCNA Study