Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Syslog

Direct answer

Cisco logging records messages locally and can forward syslog events with facility, severity and trustworthy timestamps.

When to use this

Use it for incident reconstruction, alerting and durable operational history.

First 30 seconds

1. show logging — syslog host listed? Trap level (e.g. informational) high enough?

2. logging source-interface <if> reachable from the server?

3. send log test — does it arrive on the server?

4. Timestamps: service timestamps log datetime msec localtime show-timezone and NTP synchronised.

5. Buffer large enough: logging buffered 64000 informational.

Operational verification

event generated → severity at or above the configured level → timestamped from NTP time → written to the buffer → sent to the syslog server (UDP 514) from the source interface

Failure signatureDevice logs never reach the syslog server

The local log buffer has events, but the central collector receives nothing from this device.

Possible stored cause: The collector is unreachable from the logging source address, the trap level filters the events, or UDP 514 is blocked.
Evidence · next step

1. Verify clock/NTP.
2. Verify logging destinations and thresholds.
3. Generate a safe known event.
4. Check local buffer and remote receipt.
5. Match hostname/source/timestamp across systems.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE · Cisco IOS XE
Key commandlogging host <ip>
Scope / prerequisiteUse it for incident reconstruction, alerting and durable operational history.
Show · 1Reference · 6
What next?3 suggested next steps
Child topics (this level)9
Catalog command links7
Evidence1
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

The local log buffer has events, but the central collector receives nothing from this device.

Step 1 First 30 seconds Verify boundary

Immediate answer: Verify time first, then logging destination/threshold/source and a safe known event at both device and collector.

Verification chain: Device event → severity/filter → local buffer → transport/source → collector ingest → time correlation

Stop condition: A local log entry does not show remote delivery.

Step 2 Verification and output interpretation Verify boundary

Use the device logging status/output to confirm which destinations are enabled, their severity thresholds, buffer state and remote collector configuration. Generate or identify a benign known event and verify it appears locally and remotely with the expected timestamp/source identity. Compare device time with collector time before correlating multi-device sequences. For a missing message, check whether the producing subsystem logged it, whether the local threshold admitted it, whether transport reached the collector and whether collector filters/retention preserved it. A complete verification therefore follows producer → local logging policy → transport → collector ingestion → retention/query.

Step 3 Branching troubleshooting Narrow the fault

Path: Networking → IP Services → Syslog. Local intent: Syslog: Facilities, Severity 0 — Emergency, Severity 1 — Alert, Severity 2 — Critical.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • Severity numbers run 0 most severe through 7 debugging
  • A configured threshold includes that severity and more severe messages
  • Console, buffer, terminal monitor and remote logging are distinct destinations
  • Excessive debugging can harm a production control plane; use bounded capture and rollback.
Key checks
  • show logging — console/monitor/buffer/trap levels, syslog hosts and messages logged.
  • show running-config | include logging|timestamps — hosts, levels, source interface, timestamp format.
  • show clock detail — clock and time source.
  • send log <text> — send a test message.
  • On the server: the message arrives with the correct time and host.
ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

Syslog: Cisco system messages, severities and destinations

The Catalyst 9300 system message guide documents the message format:

seq no:timestamp: %FACILITY-SEVERITY-MNEMONIC: description

The sequence number appears only with service sequence-numbers, and the timestamp only with service timestamps log. Severity is 0–7, with lower numbers more severe.

LevelNameLevelName
0emergencies4warnings
1alerts5notifications
2critical6informational
3errors7debugging

Documented defaults

SettingDefault
Console loggingEnabled, level debugging
Buffer102400 bytes
Timestamps and sequence numbersOff
Syslog serverNone configured
Server facilitylocal7
Server severity (logging trap)Informational
C9300(config)# service timestamps log datetime msec localtime show-timezone
C9300(config)# service sequence-numbers
C9300(config)# logging buffered 1048576 informational
C9300(config)# logging console warnings
C9300(config)# logging host 10.10.50.40
C9300(config)# logging trap informational
C9300(config)# logging source-interface Loopback0
C9300# show logging | include LINEPROTO
000412: Nov 28 14:32:07.418 CET: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/10, changed state to up

Choosing levels

DestinationTypical levelReason
Consolewarnings or lowerConsole output slows the device; the guide notes processes wait for console output
BufferinformationalLocal history for troubleshooting
Syslog serverinformationalCentral storage and alerting
Terminal monitordebugging, only when neededterminal monitor applies to the current session only

Documented cautions

  • An oversized buffer can exhaust memory. The guide says not to set it to the maximum free memory.
  • On a standalone switch, the buffered log is lost on a crash unless it was written to flash (logging file flash:).
  • Some UNIX syslog daemons don't accept remote messages by default.
  • SNMP severity values are offset by one (emergencies = 1).

Operational practice

Use NTP and include date, milliseconds and time zone in timestamps, so messages from many devices can be correlated. Send logs to at least two collectors, and use a loopback source so the collector sees one stable address per device.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Platform, version and operating-envelope scope

Cisco IOS / IOS XE first for device-side configuration; server implementation semantics remain product/version specific.

State model and protocol mechanics

Syslog separates event production from event collection. A network device can emit messages to local console/monitor/buffer destinations and to remote collectors, each with its own threshold and transport behavior. Severity values run from 0 (most severe) through 7 (debugging), but the semantic importance of a specific message still depends on the subsystem and event. Facility identifies a source category for routing/filtering in traditional syslog models. Remote logging commonly uses UDP, TCP or protected transport depending on implementation. Message timestamps are only useful for correlation when device time is trustworthy; sequence numbers and structured identifiers can further help order events from the same source.

Limits and common misconceptions

Absence of a log message is not evidence that an event did not occur unless collection, threshold, transport, retention and query coverage are all known. A severity-2 message is not automatically more relevant to the user’s incident than a severity-5 message from another subsystem. Syslog timestamps inherit clock quality; unsynchronized devices can make event ordering misleading. UDP delivery is best-effort and can lose messages under congestion or collector failure. A log entry is evidence that software reported an event, not automatic evidence of root cause. Preserve message text/ID and correlate with state and counters before drawing conclusions.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Set logging destinations and severity thresholds according to operational need rather than simply enabling maximum verbosity everywhere. Maintain a useful local buffer for immediate device context while sending important events to a centralized collector with sufficient retention. Ensure timestamps include enough precision/context and that NTP is functioning. Choose a source interface/VRF that has stable reachability to the collector. Debug-level logging can be high volume and should not be treated as a permanent default on resource-constrained devices. Remote collector rules should preserve original device identity and avoid filtering away events that are required for incident reconstruction.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 5424

Authoritative/upstream documentation reviewed for bounded claims in IP Services → Syslog. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc5424.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
syslogshow logginglogging severity
Embedded reference data

Quick lookup tables

Syslog + Logging evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?show loggingremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?device event → facility/severity → local filter/buffer → transport/source → collector ingest/time correlationapplication success

Syslog · operational reference

Compact state and interpretation boundaries for fast lookup.

Logging boundaryHealthy reference
ProducerSubsystem emits expected message/ID
Local policySeverity threshold admits event
TransportCollector path/source interface works
CollectorMessage ingested with correct device/time
Retention/queryEvent remains searchable for required period
Confirmation

Confirm action

Continue?