# Nothing in the error logs for RBAC

**URL:** https://discuss.elastic.co/t/nothing-in-the-error-logs-for-rbac/218810
**Category:** Elasticsearch
**Created:** [February 11, 2020, 3:57pm UTC](https://discuss.elastic.co/t/nothing-in-the-error-logs-for-rbac/218810 "2020-02-11T15:57:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![YvorL](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@YvorL](https://discuss.elastic.co/u/YvorL)
#### Post date: [February 11, 2020, 3:57pm UTC](https://discuss.elastic.co/t/nothing-in-the-error-logs-for-rbac/218810/1 "2020-02-11T15:57:17Z")

</div>

Hi,

I was setting up a 3rd party application and forgot to extend its role to read a new index. It took me some time (classified) while I realized my mistake. Shouldn't I be able to see the unauthorized request in the logs or I'd need to upgrade to a higher plan in order to see that?

Thanks!

---

<div class="post-metadata">

### Author: ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)
#### Post date: [February 12, 2020, 6:03am UTC](https://discuss.elastic.co/t/nothing-in-the-error-logs-for-rbac/218810/2 "2020-02-12T06:03:28Z")

</div>

You would need to enable [audit logging](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/enable-audit-logging.html). The error would be also visible in the response to the API call you were making.

---

<div class="post-metadata">

### Author: ![YvorL](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@YvorL](https://discuss.elastic.co/u/YvorL)
#### Post date: [February 12, 2020, 10:25am UTC](https://discuss.elastic.co/t/nothing-in-the-error-logs-for-rbac/218810/3 "2020-02-12T10:25:28Z")

</div>

I see. I understand that I can't get everything with a basic account, but since I (thankfully) get RBAC, I'd expect a vague entry which would indicate the source of the issue. As I described it was my mistake not checking the basics but I was like "Hey, the E+L error logs are empty, it has to be something with that app.". Again, I'm happy to have RBAC, just expected something to warn me that I messed up.  
Thank you!

P.s.: The app unfortunately didn't handle the response which is a shame too, I found out the issue when I made a curl call with the app's creds and it was clear what I missed during setup:

> {"error":{"root\_cause":[{"type":"security\_exception","reason":"action [indices:data/read/search] is unauthorized for user [XXXXXXX]"}],"type":"security\_exception","reason":"action [indices:data/read/search] is unauthorized for user [XXXXXXX]"},"status":403}

---

<div class="post-metadata">

### Author: ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)
#### Post date: [February 12, 2020, 10:43am UTC](https://discuss.elastic.co/t/nothing-in-the-error-logs-for-rbac/218810/4 "2020-02-12T10:43:19Z")

</div>

We do print this on DEBUG level if you set `logger.org.elasticsearch.xpack.security.authz` to `"DEBUG"`

---

<div class="post-metadata">

### Author: ![YvorL](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@YvorL](https://discuss.elastic.co/u/YvorL)
#### Post date: [February 12, 2020, 3:55pm UTC](https://discuss.elastic.co/t/nothing-in-the-error-logs-for-rbac/218810/5 "2020-02-12T15:55:40Z")

</div>

Thank you!

---

<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: [March 11, 2020, 3:55pm UTC](https://discuss.elastic.co/t/nothing-in-the-error-logs-for-rbac/218810/6 "2020-03-11T15:55:42Z")

</div>

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