Logging configuration example
Creating a log file to capture kernel-related alerts of critical and higher severity shows how to create a log file that captures kernel-related alerts of critical and higher severity.
To create a log file to capture kernel-related critical alerts, perform the following steps in configuration mode.
Step | Command |
---|---|
Create a log file called kernel-log and log kernel-related messages of critical and higher severity. |
|
Commit the configuration. |
|
Verify the configuration. |
|
The show log file kernel-log command can then be used in operational mode to display the contents of the kernel-log log file.