Use it to understand debug output in logs and why it should be kept off the console.
Severity 7 — Debugging
Syslog severity 7 (debugging) carries debug output; it is very verbose and should only be enabled briefly and never sent everywhere by default.
1. Severity 7 Debugging: debug output.
2. High volume and CPU impact.
3. Never leave enabled in production.
4. Log to buffer, not console.
5. Use conditional debugging.
debug enabled → messages → stopped after capture
Context & applicabilityCommon mistakes · platform/version boundaries
- Running
debug allor debugs without filters on production. - Leaving debugs on after the session (check with
show debugging). - Logging debug output to the console over a slow serial line.
- Sending debug-level messages to the syslog server permanently.
Operational reference
Fast context before you go deeper.
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.
- 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.
show logging— debug outputshow debugging— active debugsundebug all— stop debugs
ReferenceWhat it is1 section · depth on demand
Using debug safely
logging buffered 64000 debugging
no logging console
debug ip ospf adj
undebug all
Documented example, not captured output. Send debug output to the buffer, not the console; limit scope with conditional debugs (debug condition interface ...) or ACLs, and always stop with undebug all. A broad debug on a busy router can drive CPU to 100 %.
ReferenceWhy it matters1 section · depth on demand
Overview
Severity 7, debugging, is the output of debug commands. It is extremely detailed and can be produced fast enough to overload a device's CPU, so it should only be enabled briefly, as narrowly as possible, and written to the log buffer rather than the console.
Severity 7 — Debugging: output from debug commands. Send debugs to the buffer, not the console, to avoid overwhelming the CPU:
no logging console
logging buffered 64000 debugging
terminal monitor ! on the VTY session if you want to see them
debug ip ospf adj
undebug all
Never leave debugging enabled; on busy devices, debugs can cause high CPU and outages. Use conditional debugs (debug condition interface Gi1/0/1) where available.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Severity 7 — debugging: maximum detail, and maximum cost
Level 7 includes every message, including debug output. On Catalyst 9300 the console and terminal monitor default to debugging, and syslog servers default to informational.
C9300# show logging | include Console|Monitor|Buffer|Trap
Console logging: level debugging, 2210 messages logged, xml disabled,
Monitor logging: level debugging, 0 messages logged, xml disabled,
Buffer logging: level debugging, 2210 messages logged, xml disabled,
Trap logging: level informational, 1984 message lines logged
C9300(config)# no logging console
C9300(config)# logging buffered 8388608 debugging
C9300# terminal monitor
C9300# debug ip ospf adj
C9300# show logging | include OSPF
C9300# undebug all
C9300# terminal no monitor
Safe debugging on a production switch
| Rule | Reason |
|---|---|
| Disable console logging or set it high before debugging | Console output is slow and can make the device unresponsive |
Log to the buffer, read with show logging | Fast, and survives a lost session |
| Debug narrowly (one feature, one neighbour, a conditional debug) | Broad debugs on the data path can overload the CPU |
Set a reminder and run undebug all | Forgotten debugs keep consuming CPU |
| Prefer show commands, counters and EPC | Lower risk for most questions |
Syslog servers and level 7
Sending debugging to a syslog server (logging trap debugging) can flood the server and the network during an incident. Keep logging trap informational (the default), and raise it temporarily only with a narrowly scoped debug.
Buffer size
The guide gives a default buffer of 102,400 bytes. That holds little debug output. Increase it for the duration of the investigation, for example to 8 MB, and reduce it afterwards if memory is tight.
Documented example, not captured output.
Safer debugging
logging buffered 64000 debugging
no logging console
terminal monitor
debug ip ospf adj
undebug all
Documented example, not captured output. Use conditional debugs (debug condition interface Gi1/0/1) or packet captures (EPC) where possible.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → Syslog → Severity 7 — Debugging. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc5424.html · confidence 94%