I’m trying to publish to Kafka using Telegraf and push to Druid. I’m running into errors parsing the JSON that is being published to Kafka. Upon investigation, I’ve noticed at the end of the JSON object, it adds a newline ("\n"). I believe this is the cause of the parsing issues using Tranquility Kafka.
I did a quick Nifi flow to check the queue of the Kafka topic and sometimes, some message are just completely empty/null. I believe the newline added at the end of each messages is causing this error. I would like to just quick test and see if it’s causing the error by removing the newline
I’ve been trying to find a way to remove the newline ("\n") and just cannot find it. Could someone direct me to the docs that allows me to remove the newlines at the end of the JSON object or tell me how I may avoid having these newlines? Thank you