Elastic search cluster is down

Hi Guys,
I have installed elasticseach and kibana fine on AWS. I can access Kibana from remote server fine.
However when making API calls using nodejs i get the following error:
Request error: connect ECONNREFUSED [ip adrress]:9200
I use the "var elasticsearch = require('elasticsearch'); " to ping the server:
requestTimeout: 30000,
}, function (error) {
if (error) {
console.error('elasticsearch cluster is down!');
} else {
console.log('All is well');
Kibana config file is set to host.server"
and config.yml from elastic is set to network.host :
I have also tried network.host: ec2


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