I am trying to test out filebeat on a Windows server. Currently I am echoing into a test file that filebeat is monitoring and then output to another file to see what the output looks like. I am writing to the test file with the following command:
echo "Does this work?" >> .\Logtest.log
In the output file the Message portion looks like:
can you open/show the file in a hex editor? the \u0000 is the NULL-character for example. It's literaly a byte having value 0 (normally used to indicate end of C-strings).
If I remember correctly \ufffd stands for 'invalid.
Given you have NULL-character followed by a character I'd assume this being UTF-16 with some BOM sequence at beginning of file. Normally windows uses little endian based utf-16 encoding. Try encoding like utf-16le or utf-16le-bom .
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.