# How to access elasticsearch 5.0 from different servers

**URL:** <https://discuss.elastic.co/t/how-to-access-elasticsearch-5-0-from-different-servers/68973>\
**Category:** Elasticsearch\
**Created:** [December 14, 2016, 6:05am UTC](https://discuss.elastic.co/t/how-to-access-elasticsearch-5-0-from-different-servers/68973 "2016-12-14T06:05:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navneet\_Mathpal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/navneet_mathpal/32/3677_2.png) [@Navneet\_Mathpal](https://discuss.elastic.co/u/Navneet_Mathpal)\
**Post date:** [December 14, 2016, 6:05am UTC](https://discuss.elastic.co/t/how-to-access-elasticsearch-5-0-from-different-servers/68973/1 "2016-12-14T06:05:09Z")

</div>

Hi,

I am using elasticsearch 5.0 and trying to send the data from logstash into elasticsearch from different servers , but I am unable to connect the elasticsearch from other servers ?  
I am added the below setting into elasticsearch.yml  
http.cors.enabled: true  
http.cors.allow-origin: "\*"

But still not luck , logstash showing an error that

Attempted to send a bulk request to elasticsearch, but no there are no living connections in the connection pool. Perhaps Elasticsearch is unreachable or down? {:error\_message=\>"No Available connections

any idea what are the settings in elastisearch.yml for the same ?

Thanks,  
Navneet

---

<div class="post-metadata">

**Author:** ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)\
**Post date:** [December 14, 2016, 6:23am UTC](https://discuss.elastic.co/t/how-to-access-elasticsearch-5-0-from-different-servers/68973/2 "2016-12-14T06:23:58Z")

</div>

A few things you can check:

1. Is Elasticsearch running?
2. Is it bound to 127.0.0.1 instead of the server IP?
3. Are you able to reach Elasticsearch on port 9200 on your web browser/telnet or from the Logstash server?

> [@Navneet\_Mathpal](#):
>
> http.cors.enabled: true  
> http.cors.allow-origin: "\*"

Those are not necessary for Logstash to connect to Elasticsearch.

---

<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 11, 2017, 6:24am UTC](https://discuss.elastic.co/t/how-to-access-elasticsearch-5-0-from-different-servers/68973/3 "2017-01-11T06:24:29Z")

</div>

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