# Kafka output with SASL\_SSL authentication -- message to topic failed

**URL:** https://discuss.elastic.co/t/kafka-output-with-sasl-ssl-authentication-message-to-topic-failed/265156
**Category:** Beats
**Tags:** filebeat
**Created:** [February 23, 2021, 5:57am UTC](https://discuss.elastic.co/t/kafka-output-with-sasl-ssl-authentication-message-to-topic-failed/265156 "2021-02-23T05:57:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Abhijit\_Talukdar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhijit_talukdar/32/78248_2.png) [@Abhijit\_Talukdar](https://discuss.elastic.co/u/Abhijit_Talukdar)
#### Post date: [February 23, 2021, 5:57am UTC](https://discuss.elastic.co/t/kafka-output-with-sasl-ssl-authentication-message-to-topic-failed/265156/1 "2021-02-23T05:57:06Z")

</div>

Connection established

2021-02-23T04:37:47.565Z INFO [publisher\_pipeline\_output] pipeline/output.go:143 Connecting to kafka(xxxxxxxxxxxxxxxxxxxxxxxxx:9093,yyyyyyyyyyyyyyyyyyyyyyyyy:9093,zzzzzzzzzzzzzzzzzzzz:9093)  
2021-02-23T04:37:47.565Z DEBUG [kafka] kafka/client.go:100 connect: [xxxxxxxxxxxxxxxxxxxxxxxxx:9093 yyyyyyyyyyyyyyyyyyyyyyyyy:9093 zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz:9093]  
2021-02-23T04:37:47.565Z INFO [publisher\_pipeline\_output] pipeline/output.go:151 Connection to kafka(xxxxxxxxxxxxxxxxxxxxxxxxx:9093,yyyyyyyyyyyyyyyyyyyyyyyyy:9093,zzzzzzzzzzzzzzzzzzzz:9093) established

2021-02-23T04:43:53.290Z DEBUG [kafka] kafka/client.go:385 Kafka publish failed with: kafka: client has run out of available brokers to talk to (Is your cluster reachable?)

Here is my congfiguration

output.kafka:

# initial brokers for reading cluster metadata

hosts: ["xxxxxxxxxxxxxxx:9093", "yyyyyyyyyyyyyyyyyyyy:9093", "zzzzzzzzzzzzz:9093"]

# message topic selection + partitioning

topic: 'test-file-data'  
partition.round\_robin:  
reachable\_only: false  
required\_acks: 1  
compression: snappy  
max\_message\_bytes: 1000000  
sasl.mechanism: ''  
version: '2.0.0'  
kerberos.enabled: true  
kerberos.auth\_type: keytab  
kerberos.keytab: /var/keytab/private/xxxx.keytab  
kerberos.config\_path: /etc/krb5.conf  
kerberos.realm: [AD.XXXXXX.COM](http://AD.XXXXXX.COM)  
kerberos.username: xxxxxx  
kerberos.service\_name: kafka

---

<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: [March 23, 2021, 7:57am UTC](https://discuss.elastic.co/t/kafka-output-with-sasl-ssl-authentication-message-to-topic-failed/265156/2 "2021-03-23T07:57:25Z")

</div>

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