In the sender rsyslog configuration (/etc/rsyslog.conf)
———————————————
local0.* @syslog-server.com
———————————————

In the receiver rsyslog configuration (/etc/rsyslog.conf)
Example:
———————————————
# provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
$AllowedSender UDP, 127.0.0.1, 192.168.10.0/24

———————————————