Confluent Consume Policy

Premium Partner

Transform messages with Lua custom code

Transform messages with custom Lua code. In this example, the Confluent Consume Policy normalizes each message to a table and adds a processed_by_lua field to it.

Prerequisites

Environment variables

  • BOOTSTRAP_SERVER_HOST: The bootstrap server host.

  • API_KEY: The API key to use for authentication.

  • API_SECRET: The API secret to use for authentication.

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

Set up the policy

Attach the policy

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!