# Filebeat kafka output with SCRAM authentication

**URL:** <https://discuss.elastic.co/t/filebeat-kafka-output-with-scram-authentication/254233>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 4, 2020, 9:27am UTC](https://discuss.elastic.co/t/filebeat-kafka-output-with-scram-authentication/254233 "2020-11-04T09:27:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darshan\_Parab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/darshan_parab/32/51098_2.png) [@Darshan\_Parab](https://discuss.elastic.co/u/Darshan_Parab)\
**Post date:** [November 4, 2020, 9:27am UTC](https://discuss.elastic.co/t/filebeat-kafka-output-with-scram-authentication/254233/1 "2020-11-04T09:27:46Z")

</div>

Hi People,

I'm trying to configure a Kafka output for filebeat. The kafka broker is configure to listend on TLS and supports SCRAM authentication. I configured Kafka output successfully. However Published goes in retry indefinitly. As per the [documentation](https://www.elastic.co/guide/en/beats/filebeat/master/kafka-output.html#_username_4), username and password configuration is supported only on SASL/PLAIN mechanism. Also while validating output configuration I'm getting a warning saying `TLS... WARN Kafka output doesn't support TLS testing`

can anybody confirm if filebeat supports the Kafka broker configuration I have. Also posting below output.kafka configuration

```auto
# ----------------------------- Kafka Output ----------------------------------
output.kafka:
  hosts: ["broker1:9094", "broker2:9094", "broker3:9094"]
  topic: "mytopic"
  compression: gzip
  username: "user"
  password: "password"
  ssl.certificate_authorities: ["/path/to/ca.crt"]

```

Filebeat test output

```auto
> ./filebeat test config -c ./filebeat.yml
Config OK

```

```auto
> ./filebeat test output -c ./filebeat.yml
TLS... WARN Kafka output doesn't support TLS testing
Kafka: broker1:9094...
  parse host... OK
  dns lookup... OK
  addresses: broker1
  dial up... OK
Kafka: broker2:9094...
  parse host... OK
  dns lookup... OK
  addresses: broker2
  dial up... OK
Kafka: broker3:9094...
  parse host... OK
  dns lookup... OK
  addresses: broker3
  dial up... OK

```

Thanks,  
Darshan

---

<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:** [December 2, 2020, 11:27am UTC](https://discuss.elastic.co/t/filebeat-kafka-output-with-scram-authentication/254233/2 "2020-12-02T11:27:50Z")

</div>

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