show logging

Displays logging information.

Syntax

show logging audit [ config | firmware | security ]
show logging file
show logging id 1-60000

Parameters

audit
Displays audit logging entries.
config
Displays configuration related log information.
firmware
Displays firmware related log information.
Security
Displays security related log information.
file
Selects file for general log entries.
id 1-60000
Selects log ID to see the description.

Modes

Exec mode

Examples

The following example shows audit logging firmware information.

device# show logging audit firmware
Wed 28 Apr 2021 23:07:27.971 UTC +0000 LogID:5021 Info Msg: Firmware change successful. Current Firmware Version is NGNPB_v21.0.7.0-20210427_045749_UTC

The following example shows logging information for ID 5001.

device# NPB# show logging id 5001 
Log ID: 5001 
  Level         : Fatal 
  Message       : Unable to connect to Operational Database 
  Probable cause: Database is down 
  Remedy        : Check Database status 
  Impact        : Service not operational

The following example shows audit logging file information.

show logging file 
2021-04-22 12:17:01.2425 liblogging-stdlog:  [origin software="rsyslogd" swVersion="8.24.0" x-pid="17744" x-info="http://www.rsyslog.com"] rsyslogd was HUPed 
2021-04-22 17:17:02.8468 liblogging-stdlog:  [origin software="rsyslogd" swVersion="8.24.0" x-pid="17744" x-info="http://www.rsyslog.com"] rsyslogd was HUPed 
2021-04-22 21:17:02.3471 liblogging-stdlog:  [origin software="rsyslogd" swVersion="8.24.0" x-pid="17744" x-info="http://www.rsyslog.com"] rsyslogd was HUPed 
--More-- 

The following example shows audit logging configuration information.

show logging audit config 
Sat 16 Jan 2021 17:02:05.512 UTC +0000 LogID:8001 Info Msg: nouser/norole/none/ssh/cli, Status:100 Command:'operational assigned to groups:  admin' 
Mon 25 Jan 2021 22:52:24.557 UTC +0000 LogID:8001 Info Msg: nouser/norole/none/ssh/cli, Status:100 Command:'operational assigned to groups:  admin' 
Mon 25 Jan 2021 22:57:38.538 UTC +0000 LogID:8001 Info Msg: admin/admin sudo docker/none/ssh/cli, Status:100 Command:'operational assigned to groups:  admin' 
Mon 25 Jan 2021 22:57:42.089 UTC +0000 LogID:8001 Info Msg: admin/admin sudo docker/none/ssh/cli, Status:0 Command:'operational conf t' 
Mon 25 Jan 2021 22:59:34.316 UTC +0000 LogID:8001 Info Msg: admin/admin sudo docker/none/ssh/cli, Status:0 Command:'configure (config) exit' 
Mon 25 Jan 2021 23:18:12.456 UTC +0000 LogID:8001 Info Msg: admin/admin sudo docker/none/ssh/cli, Status:100 Command:'operational assigned to groups:  admin' 
Fri 29 Jan 2021 14:51:42.566 UTC +0000 LogID:8001 Info Msg: nouser/norole/none/ssh/cli, Status:100 Command:'operational assigned to groups:  admin' 

--More--