Logging

Last Updated : Aug 25, 2023 |
Table 1: Logging CLI commands

Command

Description

clear logging file

Delete the message log file being stored in non-volatile memory (NVRAM), including the history log, and open a new, empty log file.

clear logging server

Delete the specified Syslog message server from the Syslog server table.

set logging file

Manage the logging of system messages to non-volatile memory (NVRAM).

set logging file retention

Defines the period of time in days that log content will be retained.

set logging server

Define a new Syslog output server for remote logging of system messages.

set logging server access-level

Set the access level associated with a Syslog server sink.

set logging server condition

Set a filter for messages sent to the specified Syslog server. Messages can be filtered by source system, severity, or both.

set logging server enable | disable

Enable or disable a specific Syslog server.

set logging server facility

Define an output facility for the specified Syslog server.

set logging session

Manage message logging for the current Console session.

show dev log file

Display the encrypted device’s log file.

show logging file condition

Display all conditions that have been defined for the file output sink.

show logging file content

Output the messages in the log file to the CLI Console.

show logging file retention

Displays the period of time in days that log content will be retained.

show logging server condition

Display the filter conditions defined for the Syslog output sink.

show logging session condition

Display the filter conditions defined for message logging to the current Console session.