show logging

This topic explains the command that displays log messages stored in RAM or flash memory and the SNMP trap logs.

Syntax

show logging [buffered | file | traplogs]

Parameter

buffered: Displays the log messages stored in RAM.

file: Displays the log messages stored in flash memory.

traplogs: Displays the log messages for SNMP traps.

Default

No default value.

Mode

Privileged EXEC

Usage

Use this command to show the log messages in RAM, flash memory, or the SNMP trap logs.

Example

This example shows the log messages stored in the RAM:

CODE
Switch# show logging buffered
Logging service is enabled

Aggregation: disabled
Aggregation aging time: 300 sec

Console Logging: level notice
Buffer Logging : level info
File Logging   : disabled
Trap Logging   : level debug


Buffer Logging
--------------
<182>1 2021-01-01T00:01:33.480Z 192.168.0.239-1 discAgent-6 %% UPnP restart as no new routing interface is up w.r.t intfm.
<182>1 2021-01-01T00:01:33.480Z 192.168.0.239-1 discAgent-6 %% Started UPnP service pid (591).
<182>1 2021-01-01T00:01:07.330Z 192.168.0.239-1 discAgent-6 %% Started UPnP service.
<182>1 2021-01-01T00:01:07.330Z 192.168.0.239-1 discAgent-6 %% Started UPnP service pid (555).