Skip to main content
PacketMentor logo
← All topics
IP Services Foundational

Syslog

Send every device's log messages to a central server. Covers severity levels (0-7), facilities, message format, where to send logs (local buffer / console / monitor / server), and the eternal question of how much logging is too much.

Quick summary
  • Syslog is the standard protocol for shipping device log messages to a central server.
  • Severity levels run 0 (emergency) to 7 (debug). Lower number = worse. Production usually logs level 6 (informational) and above.
  • Default port: UDP/514. Cisco devices can log to local buffer, console, terminal lines (monitor), or a remote syslog server. All at the same time.

Studying for an exam? Get a free study plan from a Cisco NetAcad instructor. 20 minutes, no card.

Syslog · devices → central server, filtered by severity R1 SW1 FW1 Syslog Server UDP 514 Severity 0 to 7 (low number = worse) 0 emerg · 3 error · 5 notice · 7 debug
Every Cisco device can send its log messages to a central syslog server. Severity levels (0 emergency → 7 debug) let you filter what's worth keeping.

Mental model

Every switch, router, firewall, and server produces log messages: events, warnings, errors. Without centralization, those logs live on each device’s tiny local buffer and disappear when the buffer wraps. When something breaks at 3 AM, you’re SSHing into 12 devices reading scrollback.

Syslog is the standard fix: every device ships its logs to a central server, where they’re stored, indexed, and searched. Combined with synced clocks via NTP, this turns scattered log files into a single timeline you can correlate.

The format is dirt-simple: a line of text per message, prefixed with severity, facility, timestamp, and host. Modern syslog servers (Splunk, ELK, Graylog, Loki, Datadog) parse and index millions of these per second.

The 8 severity levels

Level Name When to use
0 Emergency System unusable: usually a kernel-level panic
1 Alert Action must be taken immediately
2 Critical Critical condition: major service failure
3 Error Error condition: something didn’t work
4 Warning Warning: could become a problem
5 Notice Normal but significant condition
6 Informational Routine info: config events, ACL log hits, login events
7 Debug Debug-level: high volume, only on demand

Memory aid: “Every Awesome Cisco Engineer Will Need Ice-cream Daily” (Emergency, Alert, Critical, Error, Warning, Notice, Informational, Debug).

Production rule of thumb: log level 6 (informational) to the syslog server. Reserve 7 (debug) for active troubleshooting only: debug-level traffic floods the syslog server and saturates the management link.

Where Cisco devices can log

A Cisco device has multiple log “destinations,” each independently configurable:

Destination Where it goes Default level
Console Anyone connected to the console port level 7 (debugging)
Monitor / VTY Anyone connected over SSH/Telnet (if terminal monitor enabled) level 7 (debugging)
Buffer Local RAM, viewable with show logging Platform-dependent: often debugging (7) when enabled, small default size (~4 KB on many routers)
Syslog server Remote server via UDP/514 (logging trap) level 6 (informational)
SNMP / email Less common in 2026 n/a

You typically log:

  • Console: warnings and above (level 4). Don’t spam the console
  • Buffer: level 6: keep recent local history
  • Syslog server: level 6: the real long-term record

Commands

Basic syslog server config

R1(config)# logging host 10.0.99.5
R1(config)# logging trap informational                ! level 6 and above to syslog server
R1(config)# logging source-interface Loopback0        ! consistent source IP for the server

Local buffer

R1(config)# logging buffered 16384                    ! 16 KB buffer (default is small)
R1(config)# logging buffered informational            ! level 6 and above
R1# show logging                                       ! view it
R1# clear logging                                      ! wipe it

Console + terminal

R1(config)# logging console warnings                  ! only level 4 and above to console
R1(config)# logging monitor informational             ! level 6 to vty
R1# terminal monitor                                   ! turn on log forwarding to your SSH session
R1# terminal no monitor                                ! turn it off when you're done

Timestamps (make every log entry useful)

R1(config)# service timestamps log datetime msec localtime show-timezone

This makes every log line look like:

*Aug 15 14:23:01.234 PDT: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up

The components: timestamp · facility (LINK) · severity (3) · mnemonic (UPDOWN) · message text.

Reading a Cisco log message

*Aug 15 14:23:01.234 PDT: %SYS-5-CONFIG_I: Configured from console by admin on vty0 (10.0.0.5)

Breakdown:

  • *Aug 15 14:23:01.234 PDT: when (NTP-synced if you set up NTP)
  • %SYS-5-CONFIG_I: facility-severity-mnemonic (SYS = facility, 5 = severity Notice, CONFIG_I = specific event)
  • The rest: human-readable description

The %FACILITY-N-MNEMONIC pattern is consistent across all Cisco IOS messages. Useful for filtering with grep.

Related reading: in CCNA v2.0, syslog moves into the new AI, and Network Operations and Management domain. See the CCNA v2.0 AI domain guide.

Common mistakes

  1. Sending debug-level (7) to the syslog server. Floods the server, fills disk, masks real signals. Always set logging trap informational (6) for the remote server.

  2. No NTP. Every device timestamps logs in its own clock, which drifts. Correlation across devices becomes impossible. Always configure NTP before relying on syslog.

  3. Forgetting service timestamps log datetime. Older IOS releases default to uptime-based timestamps (*00:01:23) instead of wall-clock, which is useless for forensic work. Current IOS/IOS XE ship with datetime msec, but always verify it.

  4. No logging source-interface. Without this, the device sources syslog from whichever interface routes to the server, potentially different each time. The server sees the same device with different IPs. Pin it to a loopback or management interface.

  5. No buffer at all. If the syslog server is unreachable (network outage during the outage, naturally), all log info is lost. Always configure a local buffer too.

  6. Logging passwords or secrets. Some auth failure messages can include the attempted username/password. Sanitize before storage. Avoid logging at debug level on auth subsystems.

  7. Treating syslog like a database. It’s append-only text. For metric-style data (CPU %, interface counters), use SNMP/streaming telemetry, not syslog.

Lab to try tonight

  1. Set up any syslog server (free options: Kiwi Syslog, Splunk Free, rsyslog on Linux).
  2. On a Cisco router, configure:
ntp server pool.ntp.org
service timestamps log datetime msec localtime show-timezone
logging buffered 16384 informational
logging host <syslog-server-ip>
logging trap informational
logging source-interface Loopback0
  1. Trigger some events: shut/no shut an interface. Make a config change. Login from SSH.
  2. Watch entries appear on the syslog server in real time.
  3. Try terminal monitor from an SSH session and trigger events. Watch them appear in your terminal too.
  4. Test the disconnect: turn off the syslog server, generate logs, turn server back on. Logs in the local buffer survived; the ones sent to the server during the outage didn’t.
  5. Bonus: pipe logs into Grafana Loki + Promtail. Query / chart events over time.

Cheat strip

Concept Plain English
Severity 0 to 7 Emergency to Debug. Lower = worse.
Production default Level 6 (informational) and above
Facility Component / subsystem the message came from
Mnemonic Specific event name (e.g. UPDOWN, CONFIG_I)
logging trap N Send level N and above to the syslog server
logging buffered Keep recent log lines in RAM
terminal monitor Stream logs to your SSH session
service timestamps log datetime Wall-clock timestamps. Essential.
Port UDP/514 (some use TCP/6514 for syslog-tls)
Master this on a real network

Want this drilled into reflex?

1:1 weekly sessions, live feedback on your labs, and US interview prep: built around the CCNA® exam blueprint. Free first session. No card on file until you decide.

Claim my free session →
Free first session

Stuck on Syslog?

Walk your plan with a Cisco NetAcad instructor in a free 20 minute call. We find the one thing blocking you and name the next step. No card. No pitch.

  • 20 minutes, 1:1 with a Cisco NetAcad instructor
  • No card, no obligation, no sales pitch
  • You pick the slot that fits your week
Book free session
Free first session

Get your study plan in a free 20-minute call

  • ✓ 1:1 with a senior network engineer, by video
  • ✓ You leave with a written study plan and a realistic exam date
  • ✓ No card, no sign-up, no sales pitch