Disable context keys in a Kafka source. #21617
-
Hi, I am using a Kafka source to read data from a topic. I would like to know if there is a way to disable the context fields from being added to the record. The fields offset, partition, source_type and topic. I found at the bottom of the docs page it says that: "By default, the kafka source augments events with helpful context keys.", but I found no way of turning it off. I tried to change the "_key" fields to empty strings in the config but that did not work either. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @nuekaze , You can use the |
Beta Was this translation helpful? Give feedback.
-
I can confirm that setting the following seems to remove them all : headers_key: ""
offset_key: ""
partition_key: ""
topic_key: ""
key_field: "" |
Beta Was this translation helpful? Give feedback.
I can confirm that setting the following seems to remove them all :