How to fix rsyslog default logging template on Rocky Linux8/RHEL8

RL8/RHEL8 have changed how they handle default logging template configuration.

To get current SCS syslog configuration to match what we used to have on CentOS7, please replace /etc/rsyslog.d/swarm-platform.conf with the following content:

$ModLoad imtcp $InputTCPServerRun 514 $ModLoad imudp $UDPServerRun 514 $SystemLogRateLimitInterval 0 template (name="SwarmPlatformFormat" type="string" string="%fromhost-ip% %rawmsg%\n") # NO LONGER SUPPORTED AFTER ES 6.x - local0.* /var/log/datacore/elasticsearch.log local1.* /var/log/datacore/haproxy.log;SwarmPlatformFormat local2.* /var/log/datacore/swarmfs.log;SwarmPlatformFormat local3.* /var/log/datacore/platform.log;SwarmPlatformFormat local4.* /var/log/datacore/cloudgateway_audit.log;SwarmPlatformFormat local5.* /var/log/datacore/cloudgateway_server.log;SwarmPlatformFormat local6.* /var/log/datacore/castor.log;SwarmPlatformFormat local0,local1,local2,local3,local4,local5,local6.* stop

Then restart rsyslog to activate the change:

systemctl restart rsyslog

© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.