Kafka Consume

Enterprise only

Transform messages with Lua custom filter codev3.12+

Configure the Kafka Consume plugin to transform messages with Lua custom filter code. In this example, the Kafka Consume plugin normalizes messages to a table and decodes them into JSON when possible.

Prerequisites

Environment variables

  • BOOTSTRAP_SERVER_HOST: The bootstrap server host.

  • KAFKA_TOPIC: The name of the Kafka topic to consume from.

Set up the plugin

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!