$ luarocks install near-kong-kafka-log
Kong provides many great logging tools out of the box, this is a modified version of the Kong HTTP logging plugin that has been refactored and tailored to work with Kafka.
Please see here for more info: https://github.com/near/kong-kafka-log