How to use Debezium SMT with Groovy to filter routing events

15 · Red Hat · July 6, 2023, 7:38 a.m.
Summary
After configuring my Kafka Connect Image with Debezium, demonstrated in Hugo Guerrero's article Improve your Kafka Connect builds of Debezium, I needed to configure a type of filter to only bring certain events from the database table to my topics. I was able to do this using Debezium SMT with Groovy. What is Debezium SMT? Debezium SMT (single message transform) is a filter feature provided by Debezium that is used to process only records that you find relevant. To do that, you need to include p...