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]')