Right role to access https://$ES_HOST/_stats

I have created a role with Cluster Privileges monitor and monitor_watcher and attached to user. Using the user creds I get the below error:

        Error, sdchecks[499898] Exception on running check elasticsearch: HTTPError('403 Client Error: Forbidden for url: https://$ES_HOST:9200/_stats')
    2020-06-05 00:46:16.131, 499895.499907, Error, sdchecks[499898] requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://$ES_HOST:9200/_stats

What would be the right permissions on role?

Fixed issue by adding monitor permission to * indices to role.

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