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.
- 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, vty (terminal), monitor, or a remote syslog server — all at the same time.
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 — link up/down, 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 6 (informational) |
| Monitor / VTY | Anyone connected over SSH/Telnet (if terminal monitor enabled) | level 6 |
| Buffer | Local RAM, viewable with show logging | level 6 (~ 4 KB by default) |
| Syslog server | Remote server via UDP/514 | level 6 |
| SNMP / email | Less common in 2026 | — |
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.
Common mistakes
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.No NTP. Every device timestamps logs in its own clock, which drifts. Correlation across devices becomes impossible. Always configure NTP before relying on syslog.
Forgetting
service timestamps log datetime. Default timestamps are uptime-based (*00:01:23) instead of wall-clock. Useless for forensic work.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.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.
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.
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
- Set up any syslog server (free options: Kiwi Syslog, Splunk Free, rsyslog on Linux).
- 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
- Trigger some events:
shut/no shutan interface. Make a config change. Login from SSH. - Watch entries appear on the syslog server in real time.
- Try
terminal monitorfrom an SSH session and trigger events — watch them appear in your terminal too. - 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.
- Bonus: pipe logs into Grafana Loki + Promtail. Query / chart events over time.
Cheat strip
| Concept | Plain English |
|---|---|
| Severity 0–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) |
Practice — quick check
Every question in the bank, once — no repeats. Missed ones cycle back at the end.
NTP — Network Time Protocol
How every device on the network ends up with the same clock. Covers stratum hierarchy, client and server config, authentication, and why broken NTP makes log correlation a nightmare.
QoS Basics
How routers and switches handle congestion — classifying packets, marking them with DSCP, queueing by priority, and shaping/policing traffic. Why VoIP and video deserve special treatment over file downloads.
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.
Related topics
Ansible for Network Engineers
Push configuration to dozens of Cisco devices from one YAML playbook. Covers inventory, modules, idempotency, and why Ansible became the default automation tool for network teams who don't want to write a custom Python script for every change.
IP ServicesDNS — Domain Name System
How www.example.com becomes an IP address. Covers the recursive query path (root → TLD → authoritative), record types (A, AAAA, CNAME, MX, PTR), TTL caching, and the most common DNS failure modes.
IP ServicesNTP — Network Time Protocol
How every device on the network ends up with the same clock. Covers stratum hierarchy, client and server config, authentication, and why broken NTP makes log correlation a nightmare.
Get the free CCNA 12-week roadmap
You're already reading up on Syslog. The roadmap is the order I recommend studying every CCNA topic in — with what to lab each week and where Syslog fits. A written personal reply, not an autoresponder. Expect it within one business day.
Personal reply from a senior network engineer. No third-party tracking. Unsubscribe any time.
