Rsyslog – Forward logs to another server

Create a new config file under the rsyslog config directory

sudo vim /etc/rsyslog.d/30-forward-logs.conf

Use single @ for udp forwarding
Use double @ for tcp forwarding

Example of udp forwarding

*.*  @172.16.204.1:514

Example of tcp forwarding

*.* @@172.16.204.1:514