Failed to connect to elasticsearch from logstash

I have ELB: elasticsearch-data.dev-ore, and there are 3 easlticsearch-nodes behind it.

20:58:33 dev-ore-logstash-i-bef580a6 root ~ > telnet elasticsearch-data.dev-ore  9200
Trying 10.0.19.78...
Connected to elasticsearch-data.dev-ore 
Escape character is '^]'.
^]
HTTP/1.0 404 Not Found
content-type: application/json; charset=UTF-8
content-length: 367

{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","index_uuid":"_na_","resource.type":"index_or_alias","resource.id":"bad-request","index":"bad-request"}],"type":"index_not_found_exception","reason":"no such index","index_uuid":"_na_","resource.type":"index_or_alias","resource.id":"bad-request","index":"bad-request"},"status":404}Connection closed by foreign host.

It said it was connected to at the first and then closed it due to index_not_found_exception.

I am confused why?

Why are you using telnet instead of e.g. curl to talk to ES? Judging by what you've pasted above you're not placing a valid HTTP request at all so I'm not sure what you expect would happen.

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