elasticsearch.AuthorizationException: AuthorizationException(403, 'security_exception', 'action [cluster:monitor/main] is unauthorized for user***************this action is grante d by the cluster privileges [monitor,manage,all]')

I am writting a Elastic search connection code from python like :

es = Elasticsearch("url", basic_auth=("Username", "password"))
print(es.info())

but getting error as : elasticsearch.AuthorizationException: AuthorizationException(403, 'security_exception', 'action [cluster:monitor/main] is unauthorized for user***************this action is grante d by the cluster privileges [monitor,manage,all]')

Welcome!

That probably means that you need to add the missing privileges to this user.

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