# Metricbeat kafka module with jaas authentification

**URL:** <https://discuss.elastic.co/t/metricbeat-kafka-module-with-jaas-authentification/221050>\
**Category:** Beats\
**Tags:** beats-module, metricbeat\
**Created:** [February 26, 2020, 1:55pm UTC](https://discuss.elastic.co/t/metricbeat-kafka-module-with-jaas-authentification/221050 "2020-02-26T13:55:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khaled\_Chaoued](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khaled_chaoued/32/49030_2.png) [@Khaled\_Chaoued](https://discuss.elastic.co/u/Khaled_Chaoued)\
**Post date:** [February 26, 2020, 1:55pm UTC](https://discuss.elastic.co/t/metricbeat-kafka-module-with-jaas-authentification/221050/1 "2020-02-26T13:55:33Z")

</div>

Hello all,

I have active Metricbeat kafka Module and configurer file /module.d/kafka.yml and metricbeat.yml.  
but i want to add configuration to this file, to permit authentification using Jaas.

It's possible to add jass configuration to kafka.yml, if yes how to do it.

thanks

_ **Metricbeat.yml :** _

========================== Modules configuration ============================  
metricbeat.modules:

- module: kafka  
metricsets: ["consumergroup","partition"]  
period: 10s  
hosts: ["localhost:6667"]

**/module.d/kafka.yml**

- module: kafka  
metricsets:
  - partition
  - consumergroup  
period: 10s  
hosts: ["localhost:6667"]

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [February 26, 2020, 2:48pm UTC](https://discuss.elastic.co/t/metricbeat-kafka-module-with-jaas-authentification/221050/2 "2020-02-26T14:48:27Z")

</div>

Hi @Khaled_Chaoued 🙂

`consumergroup` and `partition` metricsets can use plain jaas to authenticate while `broker`, `producer`, `consumer` delegates auth to Jolokia module.

I hope this helps

---

<div class="post-metadata">

**Author:** ![Khaled\_Chaoued](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khaled_chaoued/32/49030_2.png) [@Khaled\_Chaoued](https://discuss.elastic.co/u/Khaled_Chaoued)\
**Post date:** [February 26, 2020, 2:57pm UTC](https://discuss.elastic.co/t/metricbeat-kafka-module-with-jaas-authentification/221050/4 "2020-02-26T14:57:21Z")

</div>

Thanks for your reply.  
have you an exemple or a link that details this?  
Because i have activate Jolokia module and we don't have possibility to configure jaas.

Regards

---

<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 25, 2020, 2:57pm UTC](https://discuss.elastic.co/t/metricbeat-kafka-module-with-jaas-authentification/221050/5 "2020-03-25T14:57:22Z")

</div>

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