IBM i Change Data Capture
Read IBM i journal entries for selected DB2 tables and run a method flow for each insert, update, and delete.

A journal already records every change to a DB2 table. IBM i Change Data Capture reads that journal for the tables you name and turns each insert, update, and delete into JSON a method flow can send to Kafka, REST, or another step.