# Kafka Connection Failure

**URL:** https://discuss.elastic.co/t/kafka-connection-failure/334612
**Category:** Beats
**Tags:** filebeat
**Created:** [May 29, 2023, 6:26pm UTC](https://discuss.elastic.co/t/kafka-connection-failure/334612 "2023-05-29T18:26:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![varunsingla](https://avatars.discourse-cdn.com/v4/letter/v/a183cd/32.png) [@varunsingla](https://discuss.elastic.co/u/varunsingla)
#### Post date: [May 29, 2023, 6:26pm UTC](https://discuss.elastic.co/t/kafka-connection-failure/334612/1 "2023-05-29T18:26:37Z")

</div>

I am getting the following error when I am trying to configure **output.kafka** on my filebeat configuration:

"log.logger":"kafka","log.origin":{"file.name":"kafka/client.go","file.line":406},"message":"**Kafka publish failed with: kafka: couldn't fetch broker metadata (check that your client and broker are using the same encryption and authentication settings**)","service.name":"filebeat","ecs.version":"1.6.0"}

My **output.kafka** configs:

output.kafka:  
enabled: true  
hosts: ["server1:9093", "server2:9093", "server2:9093"]  
topic: dev\_core  
ssl.enabled: true  
ssl.certificate\_authorities: ["/opt/filebeat/CA.pem"]  
ssl.certificate: "/opt/filebeat/NessCertificate.pem"  
ssl.key: "/opt/filebeat/NessCertificate.key"  
ssl.key\_passphrase: 'aabbababababababa'

**Kindly Help**

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 26, 2023, 8:27pm UTC](https://discuss.elastic.co/t/kafka-connection-failure/334612/2 "2023-06-26T20:27:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
