Configuration Guide Configuring Syslog
Global configuration mode
By default, the level of logs sent to the log server is informational (Level 6).
You can run the show logging config command in privileged EXEC mode to display the level of logs sent
to the log server.
 Configuring the Facility Value of Logs Sent to the Log Server
logging facility facility-type
facility-type: Indicates the facility value of logs.
Global configuration mode
If the RFC5424 format is disabled, the facility value of logs sent to the server is local7 (23) by default. If the
RFC5424 format is enabled, the facility value of logs sent to the server is local0 (16) by default.
 Configuring the Source Interface of Logs Sent to the Log Server
logging source [ interface ] interface-type interface-number
interface-type: Indicates the interface type.
interface-number: Indicates the interface number.
Global configuration mode
By default, the source interface of logs sent to the log server is the interface sending the logs.
To facilitate management, you can use this command to set the source interface of all logs to an interface so
that the administrator can identify the device that sends the logs based on the unique address.
 Configuring the Source Address of Logs Sent to the Log Server
logging source { ip ip-address | ipv6 ipv6-address }
ip ip-address: Specifies the source IPv4 address of logs sent to the IPv4 log server.
ipv6 ipv6-address: Specifies the source IPv6 address of logs sent to the IPv6 log server.
Global configuration mode
By default, the source IP address of logs sent to the log server is the IP address of the interface sending the
logs.
To facilitate management, you can use this command to set the source IP address of all logs to the IP
address of an interface so that the administrator can identify the device that sends the logs based on the
unique address..
Configuration Example
 Sending Syslogs to the Log Server