# Failed to establish a new connection: \[Errno 111\] Connection refused')))

**URL:** <https://discuss.elastic.co/t/failed-to-establish-a-new-connection-errno-111-connection-refused/292919>\
**Category:** Elasticsearch\
**Created:** [December 25, 2021, 5:59pm UTC](https://discuss.elastic.co/t/failed-to-establish-a-new-connection-errno-111-connection-refused/292919 "2021-12-25T17:59:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DoDuyen162000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doduyen162000/32/95501_2.png) [@DoDuyen162000](https://discuss.elastic.co/u/DoDuyen162000)\
**Post date:** [December 25, 2021, 5:59pm UTC](https://discuss.elastic.co/t/failed-to-establish-a-new-connection-errno-111-connection-refused/292919/1 "2021-12-25T17:59:08Z")

</div>

Hi. I am having problems creating elastalert in Elasticsearch. When I use the elastalert-create-index command it gives me the error:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/3/83edf77ff5d5bceee16b67f126b111172662e1e1.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/b/fbe0609ed1c12f6bce1c88ea4ee56e7ce27137f1.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/f/4f86807996f22c3afbaa1b1fad3630bb1c2ce2ff.png)  
help me please!!!

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [December 26, 2021, 7:47am UTC](https://discuss.elastic.co/t/failed-to-establish-a-new-connection-errno-111-connection-refused/292919/2 "2021-12-26T07:47:18Z")

</div>

I suppose it is a problem of "elastalert" and it is better to ask somewhere about the product.  
One thing I can say is the error looks due to improper connection settings. You may also try to connect to the Elasticsearch server by REST API using the same information you wrote in the elastalert configuration file. If you can, it is a elastalert problem. If you can not, you may start a topic as Elasticsearch connection problem.

---

<div class="post-metadata">

**Author:** ![DoDuyen162000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doduyen162000/32/95501_2.png) [@DoDuyen162000](https://discuss.elastic.co/u/DoDuyen162000)\
**Post date:** [December 27, 2021, 7:27am UTC](https://discuss.elastic.co/t/failed-to-establish-a-new-connection-errno-111-connection-refused/292919/3 "2021-12-27T07:27:15Z")

</div>

> [@Tomo\_M](#):
>
> I suppose it is a problem of "elastalert" and it is better to ask somewhere about the product.  
> One thing I can say is the error looks due to improper connection settings. You may also try to connect to the Elasticsearch server by REST API using the same information you wrote in the elastalert configuration file. If you can, it is a elastalert problem. If you can not, you may start a topic as Elasticsearch connection problem.

thanks you \<3!!

---

<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:** [January 24, 2022, 7:27am UTC](https://discuss.elastic.co/t/failed-to-establish-a-new-connection-errno-111-connection-refused/292919/4 "2022-01-24T07:27:32Z")

</div>

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