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?
Anyone? I have been looking through the documentation and I can’t find anything related to this, it must be something I am doing wrong but I can’t figure the cause.