hi all,
I'm trying to use the Python client to create and manage snapshot on my ELK cluster 5.6.x.
A lot of time I face this error:
elasticsearch.exceptions.AuthenticationException: AuthenticationException(401, 'security_exception', 'unable to authenticate user [admin] for REST request [/_nodes/_all/http]')
here you can see the used command:
es = Elasticsearch(['node1.dprod.net','node2.dprod.net','node3.dprod.com'],sniff_on_start=True,sniff_on_connection_fail=True,sniffer_timeout=60,http_auth=('admin','xxxxx'), scheme="https", port=9200,ssl_context=context, timeout=600)
Am I doing something wrong or is there a way to handle this error?