Follow below steps to enable Syslog messages in RHEL 8 Server.
Procedure
- Open /etc/rsyslog.conf file.
- Uncomment below lines for UDP:
#module(load="imudp") # needs to be done just once
#input(type="imudp" port="514")
- Uncomment below lines for TCP:
#module(load="imtcp") # needs to be done just once
#input(type="imtcp" port="514")
- Restart rsyslog service using following command:
systemctl restart rsyslog.