Connecting via Elasticsearch-py with X-pack enabled

Hi there. I have two instances of Elastic. One is cloud ELK and the other is on my local machine. I use the one on my local machine as sandbox. My question is, how I can connect to it when having X-pack security enabled? On cloud, it is easy and the model is: https://elastic:PASSWORD@URL to Kibana Instance.
What is it with local machine? I had as default connection arguments {'host': 'localhost', 'port': 9200}, however, after installing X-pack I can not connect to it which is expected.
How I can do it now with my username and password?

Hi, please see the section SSL and authentication in the Python client docs.

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