Time and logs: NTP and syslog
▶ Start the interactive lesson
An outage hit at 14:02. The firewall logs say 14:02, the router says 09:47, and the switch says it's 1993. Nobody can tell what happened first. "Logs are evidence," Maya says, "and evidence needs the right time and a safe place to live."
Key points
- NTP (UDP 123) syncs clocks from a hierarchy of strata: stratum 0 is a reference clock (GPS, atomic), stratum 1 servers are attached to it, and so on down. Stratum 16 = unsynchronised. Point devices at 2+ internal NTP servers.
- Cisco: ntp server IP, then check show ntp status and show ntp associations (a * marks the chosen peer).
- Syslog (UDP 514, or TCP/TLS for reliability) sends device messages to a central server or SIEM. Each message has a severity: 0 Emergency, 1 Alert, 2 Critical, 3 Error, 4 Warning, 5 Notice, 6 Informational, 7 Debugging. Memory aid: "Every Awesome Cisco Engineer Will Need Ice-cream Daily".
- Cisco: logging host IP, logging trap 6 (send severity 0–6), service timestamps log datetime msec. Because classic syslog is UDP, a dead server doesn't complain. Check the receiving side.
The full lesson has more: animations, a hands-on exercise, 3 quiz questions and spaced review cards. Open it free →