Vasuji
(Dibakar)
March 17, 2020, 10:08pm
1
Hi all,
I am getting trouble with connecting to the elastic cloud with the following code through Jupyter notebook:
es = Elasticsearch(["https://xxxxxxxxxxxxxxxx.us-west-1.aws.found.io:9243/"])
es.info(pretty=True) => throws following ERROR message
AuthenticationException: TransportError(401, 'security_exception', 'action [cluster:monitor/main] requires authentication')
Any help would be appreciated.
warkolm
(Mark Walkom)
March 17, 2020, 10:26pm
2
Vasuji
(Dibakar)
March 18, 2020, 9:31pm
3
Thank you Mark!
This worked. I did the following:
es = Elasticsearch(
[login["remote_host"]],
http_auth=(login["user"],login["password"]),
scheme="https",
port=443,
)
It is going awesome now!
system
(system)
Closed
April 15, 2020, 9:31pm
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.