# Metricbeat zookeeper module connecting to zookeeper using ssl connection

**URL:** <https://discuss.elastic.co/t/metricbeat-zookeeper-module-connecting-to-zookeeper-using-ssl-connection/262973>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [February 2, 2021, 12:42pm UTC](https://discuss.elastic.co/t/metricbeat-zookeeper-module-connecting-to-zookeeper-using-ssl-connection/262973 "2021-02-02T12:42:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![atamarnath](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atamarnath/32/57083_2.png) [@atamarnath](https://discuss.elastic.co/u/atamarnath)\
**Post date:** [February 2, 2021, 12:42pm UTC](https://discuss.elastic.co/t/metricbeat-zookeeper-module-connecting-to-zookeeper-using-ssl-connection/262973/1 "2021-02-02T12:42:30Z")

</div>

Hi,

I am trying to connect to metricbeat zookeeper module to zookeeper through ssl connection. Though I am able to connect in non ssl mode I am unable to connect through ssl.

I get the below errors  
`srvr command failed: read failed: read tcp 10.12.2.54:63943->10.11.54.57:2181: i/o timeout `mntr command failed: read failed: read tcp 10.12.2.54:63942-\>10.11.54.57:2181: i/o timeout

zookeeper.yml configuration is

```````````````````auto
`- module: zookeeper
` metricsets:
` - mntr
` - server
` period: 10s
` hosts: ["host.xxx.com:2181"]
` ssl.enabled: true  
` ssl.certificate: "C:\\Elastic\\Certificate\\Zookeeper\\certf3.pem"
` ssl.key: "C:\\Elastic\\Certificate\\Zookeeper\\keyf3.key"
``````````````````
Thanks
```````````````````

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [February 10, 2021, 11:52am UTC](https://discuss.elastic.co/t/metricbeat-zookeeper-module-connecting-to-zookeeper-using-ssl-connection/262973/2 "2021-02-10T11:52:09Z")

</div>

Hey!

Looking into the code of this module I see that most probably ssl is not supported [beats/zookeeper.go at 35a7882f69d6daf9ab72f36c6509a00aaa2904d0 · elastic/beats · GitHub](https://github.com/elastic/beats/blob/35a7882f69d6daf9ab72f36c6509a00aaa2904d0/metricbeat/module/zookeeper/zookeeper.go#L38).

Could you please open a GitHub issue (enhancement request) for this so as the team can validate and evaluate the support of ssl?

C.

---

<div class="post-metadata">

**Author:** ![atamarnath](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atamarnath/32/57083_2.png) [@atamarnath](https://discuss.elastic.co/u/atamarnath)\
**Post date:** [February 25, 2021, 2:24pm UTC](https://discuss.elastic.co/t/metricbeat-zookeeper-module-connecting-to-zookeeper-using-ssl-connection/262973/3 "2021-02-25T14:24:21Z")

</div>

Thanks Chris. I found github enhancement request already open.

---

<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, 2021, 2:25pm UTC](https://discuss.elastic.co/t/metricbeat-zookeeper-module-connecting-to-zookeeper-using-ssl-connection/262973/4 "2021-03-25T14:25:21Z")

</div>

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