Wildfly 10 Sys-log-handler printing with Byte_order_mark <feff>

Viewed 765

I have configured a syslog-handler in WildFly-10 Standalone.xml as below

<syslog-handler name="mysyslog">
    <level name="INFO"/>
    <hostname value="localhost"/>
    <app-name value="myappserver"/>
    <facility value="local-use-7"/>
</syslog-handler>

I have added rules in rsyslog.d as

if $programname == 'myappserver'   then /tmp/mysyslog.log

When i check the mysyslog file i could see <feff> characters

These characters are appended by Wildfly itself before sending it to rsyslog.

Can you please let me know how to get rid of these from my logs

I referred this link https://en.wikipedia.org/wiki/Byte_order_mark and it indicated that these are BOM characters

1 Answers
Related