报错 kafka: couldn't fetch broker metadata (check that your client and broker are using the same encryption and authentication settings)
8.4.1版本的filebeat无法连接到开启了sasl认证的0.11.0.2的kafka
kafka设置如下:已设置listeners
和advertised.listeners
选项
security.inter.broker.protocol=SASL_PLAINTEXT
sasl.enabled.mechanisms=SCRAM-SHA-512
sasl.mechanism.inter.broker.protocol=SCRAM-SHA-512
filebeat设置
output.kafka:
version: 0.11.0.2
enabled: true
hosts: ["localhost:9092"]
topic: test-topic
username: admin
password: 123456
sasl.mechanism: SCRAM-SHA-512
kafka版本问题 filebeat 8.3.1 以上+ kafka3.1.0 连接没问题