Configuration Guide Configuring Syslog
Unless otherwise specified, perform this configuration on the device to configure the level of logs sent to the log server.
Configuring the Facility Value of Logs Sent to the Log Server
(Optional) If the RFC5424 format is disabled, the facility value of logs sent to the log server is local7 (23) by default. If
the RFC5424 format is enabled, the facility value of logs sent to the log server is local0 (16) by default.
Unless otherwise specified, perform this configuration on the device to configure the facility value of logs sent to the log
server.
Configuring the Source Interface of Logs Sent to the Log Server
(Optional) By default, the source interface of logs sent to the log server is the interface sending the logs.
Unless otherwise specified, perform this configuration on the device to configure the source interface of logs sent to the
log server.
Configuring the Source Address of Logs Sent to the Log Server
(Optional) By default, the source address of logs sent to the log server is the IP address of the interface sending the
logs.
Unless otherwise specified, perform this configuration on the device to configure the source address of logs sent to the
log server.
Verification
Run the show logging config command to display the configurations related to the log server.
Related Commands
Sending Logs to a Specified Log Server
logging server { ip-address | ipv6 ipv6-address } [ udp-port port ]
Or logging { ip-address | ipv6 ipv6-address } [ udp-prot port ]
ip-address: Specifies the IP address of the host that receives logs.
ipv6 ipv6-address: Specifies the IPv6 address of the host that receives logs.
udp-port port: Specifies the port ID of the log server. The default port ID is 514.
Global configuration mode
This command is used to specify the address of the log server that receives logs. You can specify multiple
log servers, and logs will be sent simultaneously to all these log servers.
You can configure up to five log servers on a Ruijie product.
Configuring the Level of Logs Sent to the Log Server
level: Indicates the log level.