Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

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.

Table 1. Creating a log file to capture kernel-related alerts of critical and higher severity
Step Command

Create a log file called kernel-log and log kernel-related messages of critical and higher severity.

vyatta@R1# set system syslog file kernel-log facility kern level crit

Commit the configuration.

vyatta@R1# commit

Restarting system log daemon....
vyatta@R1# 
                            
                            

Verify the configuration.


vyatta@R1# show system syslog file kernel-log

 facility kern {
    level crit
 }

The show log file kernel-log command can then be used in operational mode to display the contents of the kernel-log log file.