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:
client.ping({
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" 0.0.0.0
and config.yml from elastic is set to network.host : 0.0.0.0
I have also tried network.host: ec2
Thanks