Follow below steps to enable Syslog messages in RHEL 8 Server.

Procedure

  1. Open /etc/rsyslog.conf file.
  2. Uncomment below lines for UDP:
    #module(load="imudp") # needs to be done just once
    #input(type="imudp" port="514")
  3. Uncomment below lines for TCP:
    #module(load="imtcp") # needs to be done just once
    #input(type="imtcp" port="514")
  4. Restart rsyslog service using following command:
    systemctl restart rsyslog.