I'm trying to collect logs from different appliances by using an Elastic Agent 8.14.3 with the Custom UDP Logs integration 1.19.1.
One of the appliance is sending RFC 5424 formatted logs, with a structured data part and a regular part.
The structured data has values containing escaped "]" and this seems to trigger a bug in the parser if the escaped "]" is not the last character of a value.
For example, the following message is properly parsed:
I've got a fix in place for ']' in the regular message as well.
Regarding the BOM, is that even the correct escape sequence? To me that just looks like 'EF' hex, followed by a regular "BBBF". We have tests in place already for the BOM and I can't reproduce the issue. We use " \ufeff" for the escape sequence in tests and the live code. This is also what is used by Go: text/encoding/unicode/override.go at master · golang/text · GitHub
EDIT: For a hex escape sequence, I would expect to see something like this: " \xEF\xBB\xBF". I tested with this in our unit tests and it is not included in the final message as expected.
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.