home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Overriding the host syslog logging facility for log entries

The system syslog configuration on a vRouter provides the capability to send log entries to a host system. You can designate which log entries are sent by specifying the facility and log level by using the set system syslog host <host> facility <facility> level <level> command. You can use this command multiple times to specify different facility values for the log entries sent to the specified host.

You can also configure a facility override value that replaces the facility fields in all log entries sent to a specified host. For example, you can specify multiple facility values for a set of log entries sent by the vRouter to a log host. Before sending the entries to the host, the facility values are replaced with the override value. When the host receives these log entries, their facility field value is designated by the facility override value.

Note:

A facility override only affects log entries sent to a host and does not affect entries set to a user, console, or file.

A facility override is specific to a host. Different hosts can have different override values.

The following example provides a configuration of multiple host syslog logging facilities with a facility override.

Table 1. Overriding the host syslog logging facility for log entries
Step Command

Specify the facilities messages that are sent to a host.

vyatta@R1# set system syslog host 10.10.10.10 facility auth level crit
vyatta@R1# set system syslog host 10.10.10.10 facility user level err

Specify the facility override value that replaces the facility values of the log entries sent to the host.

vyatta@R1# set system syslog host 10.10.10.10 facility-override local7

Commit the configuration.

vyatta@R1# commit

Verify the configuration.

vyatta@R1#show system syslog 
 syslog {
     host 10.10.10.10 {
         facility auth {
             level crit
         }
         facility user {
             level err
         }
         facility-override local7
     }
 }