I am using rsyslog to forward logs generated in tomcat (catalina.out), I configured rsyslog to use the syslog protocol 23 so I can have priority and ms in graylog.
I am currently simulating the log sending with:
echo -e "date ‘+%d-%b-%Y %H:%M:%S.%3N’
TEST\nRESULT" >> /var/log/tomcat8/catalina.out
The logs are being forwarded to graylog as expected but on the msg field in graylog the newlines are shown as \n instead of a proper newline.
Where should I fix this so the newlines would be shown properly?