VRF support for syslog
An overview of VRF support for syslog and example commands.
You can configure syslog on any routing instance. If a routing instance is not specified for logging, the default routing instance is used to access the remote host. You can also configure a facility override value that replaces the facility fields in all log entries that are sent to a remote host. For example, you can specify multiple facility values for a set of log entries that are sent by the vRouter to a log remote host. Before sending the entries to the remote host, the facility values are replaced with the override value.
The following examples show syslog configurations that use these values:
- Routing instance = BLUE
- IP address of the host = 10.10.10.10
- Facility value = auth (Authentication and authorization)
- Level = crit (Critical)
The following example shows how to configure syslog for the default routing instance.
vyatta@R1# set system syslog host 10.10.10.10 facility auth level crit
vyatta@R1# commit
vyatta@R1# run show configuration
system {
syslog {
host 10.10.10.10 {
facility auth {
level crit
}
}
}
}
The following example shows the same configuration sequence for the BLUE routing instance.
vyatta@R1# set routing routing-instance BLUE system syslog host 10.10.10.10 facility auth level crit
vyatta@R1# commit
vyatta@R1# run show configuration
routing {
routing-instance BLUE {
system {
syslog {
host 10.10.10.10 {
facility auth {
level crit
}
}
}
}
}
}
For more information on logging and configuring logging, refer to Ciena Vyatta Network OS Basic System Configuration Guide .