0

I'm currently using Node's [elasticsearch][1] package. Until now, I connected to the ES instance in the following way.

let esClient = new elasticsearch.Client({
        host: '127.0.0.1:9200',
        log: 'trace'
});

Now, I've installed ES on a remote Amazon EC2 Linux server by tunneling through SSH using a key file. I've done the basic ES installation and setup on that server. Tested it as well, and it runs properly.

I've now deployed my Node project on a Server X (EC2 - Ubuntu server). And Elasticsearch is on Server Y(EC2 - Amazon Linux server).

Apart from specifying the IP in the host parameter what else do I need to connect to ES running on Server Y from Server X?

1 Answer 1

1

You have to make sure you have the port (9200) open in Amazon's Security Group settings.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.