# The aggregations key is missing from the response, check your permissions for this request

**URL:** <https://discuss.elastic.co/t/the-aggregations-key-is-missing-from-the-response-check-your-permissions-for-this-request/207932>\
**Category:** Kibana\
**Created:** [November 14, 2019, 4:23pm UTC](https://discuss.elastic.co/t/the-aggregations-key-is-missing-from-the-response-check-your-permissions-for-this-request/207932 "2019-11-14T16:23:04Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![Akhil\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akhil_k/32/45475_2.png) [@Akhil\_K](https://discuss.elastic.co/u/Akhil_K)\
**Post date:** [December 3, 2019, 6:49pm UTC](https://discuss.elastic.co/t/the-aggregations-key-is-missing-from-the-response-check-your-permissions-for-this-request/207932/21 "2019-12-03T18:49:37Z")

</div>

PFB the reponse I get when running command in server directly :

{

"cluster\_name" : "docker-cluster",

"status" : "yellow",

"timed\_out" : false,

"number\_of\_nodes" : 1,

"number\_of\_data\_nodes" : 1,

"active\_primary\_shards" : 686,

"active\_shards" : 686,

"relocating\_shards" : 0,

"initializing\_shards" : 0,

"unassigned\_shards" : 685,

"delayed\_unassigned\_shards" : 0,

"number\_of\_pending\_tasks" : 0,

"number\_of\_in\_flight\_fetch" : 0,

"task\_max\_waiting\_in\_queue\_millis" : 0,

"active\_shards\_percent\_as\_number" : 50.036469730124

}

I didn't see any specific error in elasticsearch logs when running the command.

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [December 4, 2019, 2:53pm UTC](https://discuss.elastic.co/t/the-aggregations-key-is-missing-from-the-response-check-your-permissions-for-this-request/207932/22 "2019-12-04T14:53:26Z")

</div>

That looks good, now can you run the command from the server instance running kibana?

---

<div class="post-metadata">

**Author:** ![Akhil\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akhil_k/32/45475_2.png) [@Akhil\_K](https://discuss.elastic.co/u/Akhil_K)\
**Post date:** [December 5, 2019, 4:36pm UTC](https://discuss.elastic.co/t/the-aggregations-key-is-missing-from-the-response-check-your-permissions-for-this-request/207932/23 "2019-12-05T16:36:59Z")

</div>

PFB the response when I run the command on kibana server instance :  
{"statusCode":404,"error":"Not Found","message":"Not Found"}

Also I get this error log : [error\_log\_kibana](https://gist.github.com/akhil-karikunnath/7da7e293e425d0bcbd5174f84a6c6497)

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [December 6, 2019, 2:46pm UTC](https://discuss.elastic.co/t/the-aggregations-key-is-missing-from-the-response-check-your-permissions-for-this-request/207932/24 "2019-12-06T14:46:48Z")

</div>

> [@mattkime](#):
>
> curl -X GET "localhost:9200/\_cluster/health?wait\_for\_status=yellow&timeout=50s&pretty"

We need ot figure out how to get the same response running the command from the elasticsearch server instance as the kibana server instance. I'm going to try some things on my local machine. How do you have kibana and elasticsearch deployed?

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [December 6, 2019, 5:50pm UTC](https://discuss.elastic.co/t/the-aggregations-key-is-missing-from-the-response-check-your-permissions-for-this-request/207932/25 "2019-12-06T17:50:25Z")

</div>

It seems to me that the kibana results you're posting are from kibana rather than the command line of the server running kibana. Its important to run it from the command line to determine whether this is a networking problem or a kibana config problem.

---

<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:** [January 3, 2020, 5:50pm UTC](https://discuss.elastic.co/t/the-aggregations-key-is-missing-from-the-response-check-your-permissions-for-this-request/207932/26 "2020-01-03T17:50:26Z")

</div>

Closed on January 3, 2020, 5:50pm UTC

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

[Previous page](https://discuss.elastic.co/t/the-aggregations-key-is-missing-from-the-response-check-your-permissions-for-this-request/207932.md?page=1)
