Query index in Elasticsearch cluster

I've configured an Elasticsearch Cluster of 3 nodes. Now I'm planning to write a bash script which will query for the index from the curl command without mentioning the ES node name as this cluster setup allows up to 1 node failover. If I mention a specific node name then I may not get the output as that node might be down. Is there any proper way to call the script and get data from outside the ES network?

I would use a scripting language for which there exists an official client, e.g. Python, rather than bash as the clients handle failover. If you are using bash you will need to build this yourself.

Thank you for the suggestion. Now I'm using ES Client GO API.

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