How to access elasticsearch 5.0 from different servers


(Navneet Mathpal) #1

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


(Anh) #2

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?

Those are not necessary for Logstash to connect to Elasticsearch.


(system) #3

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