You need to configure 3 things:
Brokers
Filebeat kafka output
Consumer
Here a example (change paths according your environment).
Broker configuration:
vim /opt/kafka/config/server.properties
message.max.bytes=100000000
systemctl restart kafka.service
Filebeat kafka output:
max.partition.fetch.bytes=200000000
output.kafka:
...
max_message_bytes: 100000000
filebeat-kafka:WARN producer/broker/0 maximum request accumulated, waiting for space
原文:https://www.cnblogs.com/doraman/p/kafka.html