This article covers how to set up the Rsyslog server on Debian 11. In fact, Rsyslog is a free and open-source logging software that forwards all log files to the centralized log server through the IP network. It helps system administrators to keep an eye on all servers from the central point. Rsyslog works in a client/server model, it receives logs from the remote client on port 514 over the TCP/UDP protocol.
How to Install Rsyslog on any Linux distribution ?
1. First, you will need to install the Rsyslog server package on the server machine. You can install it in Debian / Ubuntu using the following command:
$ apt-get install rsyslog -y
In RHEL based distros like CentOS:
$ sudo yum install rsyslog
2. After the installation, verify the Rsyslog status using the following command:
$ systemctl status rsyslog