Hello Everyone,
I am trying to load data into kafka topic through filebeat. The major issue I am facing is, filebeat is converting special character (&) into Unicode value (\u0026) when loading into kafka topic output.
My log data has the field "department": "E&C". When this field is loaded into kafka from filebeat, it is looking as E\u0026C. I am using latest version of filebeat 7.13.3.
How I can resolve this issue?. I have tried lot of different possibilities but nothing works out. please advise
This is my .yml file:
filebeat.inputs:
-type: log
paths:
- C:\Users\MYNAME\Downloads\abc.log
multiline.type: pattern
multiline.pattern: '###'
multiline.negate: true
multiline.match: after
output.kafka:
enabled: true
hosts: [localhost:9092]
topic: "My_topic"
codec.json:
pretty: true
escape_html: false
Note: I have tried with and without "escape_html" option. But in both case, Unicode conversion is happening.
Please anyone help me in resolving this issue. It would be really great help for me.
Thanks in advance