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.
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.
Step | Command |
---|---|
Specify the facilities messages that are sent to a host. |
|
Specify the facility override value that replaces the facility values of the log entries sent to the host. |
|
Commit the configuration. |
|
Verify the configuration. |
|