Static Message Key JDBC Source Connector


is it possible to set a static message key?
I only see an example for a dynamic message key like this;


I only want that:


Tahnks for help.



I think you can use org.apache.kafka.connect.transforms.InsertField$Key to do this.

Just a thought, if you’re setting the same key for every single message though is there much point?

Ok, that is what i am looking for thx Robin.

Hi Robin maybe you can help me again.
I try this:

"transforms.insertKey.type": "org.apache.kafka.connect.transforms.InsertField$Key",
"transforms.insertKey.static.field": "MessageSource",
"transforms.insertKey.static.value": "Database"

But the message Key is still null. Any Ideas?