Enable Remote Logging in Rsyslog on Linux (Debian, Ubuntu, CentOS, Fedora)

Edit the rsyslog file

sudo vi /etc/rsyslog.conf

add the following. Change out the IP address for your remote syslog server IP address.

The syntax for this has changes. Newer recommended way is

*.*  action(type="omfwd" target="" port="514" protocol="tcp"

Old Syntax

## rsyslog Server
*.*     @


Restart the rsyslog service and check your remote log server.

systemctl restart rsyslog

Leave a Reply

Your email address will not be published. Required fields are marked *