# Access denied for IndicesStatsRequest

**URL:** https://discuss.elastic.co/t/access-denied-for-indicesstatsrequest/178700
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [April 26, 2019, 5:16pm UTC](https://discuss.elastic.co/t/access-denied-for-indicesstatsrequest/178700 "2019-04-26T17:16:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)
#### Post date: [April 26, 2019, 5:16pm UTC](https://discuss.elastic.co/t/access-denied-for-indicesstatsrequest/178700/1 "2019-04-26T17:16:38Z")

</div>

I'm trying to setup Elastic monitoring in Zabbix using this project [https://github.com/zarplata/zabbix-agent-extension-elasticsearch](https://github.com/zarplata/zabbix-agent-extension-elasticsearch)

I think I have it mostly working, but I'm getting a permission error, my user is being denied for IndicesStatsRequest. I want the user to have the minimal necessary access. I connected the user to the monitorint\_user role.

What permission is needed?

Thanks

---

<div class="post-metadata">

### Author: ![Yogesh\_Gaikwad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_gaikwad/32/27025_2.png) [@Yogesh\_Gaikwad](https://discuss.elastic.co/u/Yogesh_Gaikwad)
#### Post date: [April 30, 2019, 1:58am UTC](https://discuss.elastic.co/t/access-denied-for-indicesstatsrequest/178700/2 "2019-04-30T01:58:32Z")

</div>

Hi @rugenl,

I am not sure if you had a chance to look at [Monitoring Elastic stack](https://www.elastic.co/guide/en/x-pack/current/xpack-monitoring.html)

`monitoring_user` has indices privileges only on `.monitoring-*` indices to `read`.  
The `.monitoring-*` indices are local indices where the monitoring metrics are stored.  
You can also have a remote monitoring cluster and is recommended for production environments.

In your case, I think you will need to create the role required for that third party extension to work.  
The role will need to have indices privilege `monitor` which allows you access to `indices:monitor/stats` actions. You may want to go through the [security-privileges](https://www.elastic.co/guide/en/elastic-stack-overview/current/security-privileges.html) to construct the role that you want to use with the extension.

Hope this helps.

Thanks and Regards,  
Yogesh Gaikwad

---

<div class="post-metadata">

### Author: ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)
#### Post date: [May 1, 2019, 12:00am UTC](https://discuss.elastic.co/t/access-denied-for-indicesstatsrequest/178700/3 "2019-05-01T00:00:39Z")

</div>

I'm not sure what all we tried and in what order, but what seemed to fix it was an index rule for "\*" with monitoring access.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 29, 2019, 12:00am UTC](https://discuss.elastic.co/t/access-denied-for-indicesstatsrequest/178700/4 "2019-05-29T00:00:42Z")

</div>

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