First, make sure the rsyslog service is installed:
sudo dnf install rsyslog -y
- Once installed, activate and start the service:
sudo systemctl enable rsyslog sudo systemctl start rsyslog
- Let’s edit the main rsyslog configuration file:
sudo nano /etc/rsyslog.conf
And then we add these lines
same configuration on all machines