# Metricbeat with Zookeper module

**URL:** <https://discuss.elastic.co/t/metricbeat-with-zookeper-module/285487>\
**Category:** Beats\
**Tags:** beats-module, metricbeat\
**Created:** [September 29, 2021, 2:01pm UTC](https://discuss.elastic.co/t/metricbeat-with-zookeper-module/285487 "2021-09-29T14:01:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lidya\_Aguero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lidya_aguero/32/94127_2.png) [@Lidya\_Aguero](https://discuss.elastic.co/u/Lidya_Aguero)\
**Post date:** [September 29, 2021, 2:01pm UTC](https://discuss.elastic.co/t/metricbeat-with-zookeper-module/285487/1 "2021-09-29T14:01:32Z")

</div>

I try use Metricbeat 7.15.0 with Zookeeper module and receive this messages in Elasticsearch:

error.message: error obtaining serverid: no 'serverId' found in 'conf' response

zookeeper.yml:

```auto
- module: zookeeper
  enabled: true
  metricsets: [mntr, server, connection]
  period: 30s
  hosts: ["100.120.50.10:2181"]

```

I don't receive any other metrics like:

- zookeeper.server.connections
- zookeeper.mntr.znode\_count
- zookeeper.connection.interest\_ops

Any comments please?

---

<div class="post-metadata">

**Author:** ![michael\_0815](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@michael\_0815](https://discuss.elastic.co/u/michael_0815)\
**Post date:** [October 6, 2021, 2:48pm UTC](https://discuss.elastic.co/t/metricbeat-with-zookeper-module/285487/2 "2021-10-06T14:48:39Z")

</div>

Hello,

we had the same issue and fixed it.

Details see: [Improve handing of disabled commands in Zookeeper Metricbeat module · Issue #20376 · elastic/beats · GitHub](https://github.com/elastic/beats/issues/20376)

cons and conf need to be whitelisted in zookeeper, this is new in metricbeat

see: [Add server id to zookeeper events (#25550) · elastic/beats@90373d5 · GitHub](https://github.com/elastic/beats/commit/90373d5afd07c2a5471052b4a5976ff280fbdc38#diff-32c0fa97678d1567f3a5da15ebb4edcf26b62a08948158b7e8daf43f467702df)

adapt your zookeeper config file  
e.g: "4lw.commands.whitelist=ruok,conf,cons"

Then all works.  
Happy hacking.

---

<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:** [November 3, 2021, 4:48pm UTC](https://discuss.elastic.co/t/metricbeat-with-zookeper-module/285487/3 "2021-11-03T16:48:51Z")

</div>

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