By default, the source address of the log messages sent to the syslog server is the address of the
sending interface. For easy tracing and management, this command can be used to fix the source
address of all log messages as an address, so that the administrator can identify which device is
sending the message through the unique address. If no IP address is configured for the device, the
source IP address of the log message is still that of the interface from which the message is sent.
The example below specifies the 192.168.1.1 as the source address of the syslog messages:
Ruijie(config)# logging source ip 192.168.1.1