How to connect from python to an elasticsearch cluster?

Hi everyone!

I have an elasticsearch cluster, one virtual machine per node and everything works fine. I want to connect to the cluster using python, I understand that there is a library and I have been reading it, but all the examples indicate how to connect to a single node, and I want to be sure that I am connecting to the entire cluster and not just to one node. Does anyone have an example of how to connect from python to elasticsearch, considering that it is a cluster with several nodes?

Any help would be appreciated, thanks in advance!

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