# Stats Api timeout error when I delete some indices in kibana

**URL:** <https://discuss.elastic.co/t/stats-api-timeout-error-when-i-delete-some-indices-in-kibana/213250>\
**Category:** Elasticsearch\
**Created:** [December 28, 2019, 8:24am UTC](https://discuss.elastic.co/t/stats-api-timeout-error-when-i-delete-some-indices-in-kibana/213250 "2019-12-28T08:24:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xyx](https://avatars.discourse-cdn.com/v4/letter/x/eb8c5e/32.png) [@xyx](https://discuss.elastic.co/u/xyx)\
**Post date:** [December 28, 2019, 8:24am UTC](https://discuss.elastic.co/t/stats-api-timeout-error-when-i-delete-some-indices-in-kibana/213250/1 "2019-12-28T08:24:32Z")

</div>

When I delete a lot of indices in kibana，about 20 Indies.And I got a lot stats api timeout error.  
And,I never use the api[Cluster Stats，Nodes Stats，Index Stats].But I have enabled stack monitoring in kibana.  
I create index by day.My Es Cluster have five nodes,Three mater,four data node.About 1TB data.And about 200 indices.And I use NAS disk.  
Sometimes I will delete some indices.And then I will do a log delete commond in Dev-Tools.Every Indies just have about ten documents.It is a lot small indices。  
After I do some Delete commond.The Elasticsearch will have a lot timeout error.And then ES cluster will become slowly in search in sometimes.I just worried about it.  
I never use the api[Cluster Stats，Nodes Stats，Index Stats] in my coding.Does it coused by stack monitoring ,who can help me?

Delete commond,Such as.  
(1)DELETE log\_api\_projects\_20191110,log\_api\_projects\_260191111,log\_api\_projects\_20191112,log\_api\_projects\_20191113,log\_api\_projects\_20191114,log\_api\_projects\_20191115,log\_api\_projects\_2019116,log\_api\_projects\_20191117  
(2)DELETE log\_api\_projects\_20191100,log\_api\_projects\_260191011,log\_api\_projects\_20191012,log\_api\_projects\_20191013,log\_api\_projects\_20191014,log\_api\_projects\_20191015,log\_api\_projects\_2019016,log\_api\_projects\_20191017  
(3)....

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 28, 2019, 8:46am UTC](https://discuss.elastic.co/t/stats-api-timeout-error-when-i-delete-some-indices-in-kibana/213250/2 "2019-12-28T08:46:26Z")

</div>

What is the output of:

```auto
GET /
GET /_cat/nodes?v
GET /_cat/health?v
GET /_cat/indices?v

```

If some outputs are too big, please share them on [gist.github.com](http://gist.github.com) and link them here.

---

<div class="post-metadata">

**Author:** ![xyx](https://avatars.discourse-cdn.com/v4/letter/x/eb8c5e/32.png) [@xyx](https://discuss.elastic.co/u/xyx)\
**Post date:** [December 28, 2019, 9:01am UTC](https://discuss.elastic.co/t/stats-api-timeout-error-when-i-delete-some-indices-in-kibana/213250/3 "2019-12-28T09:01:29Z")

</div>

And now.The cluster health is gree and always is green;Every indices just have one primary shard.And there is no indices is larger than 30GB.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/1/a15450e9d3c82012d7010f61caedf764410ba38e.jpeg) ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/5/b5138284fb6483d7c362c4fdaae46196d2352a7d.jpeg) ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/4/d4cd19a97d5d19b1024363f7cb4e71565a9454ec.jpeg)

---

<div class="post-metadata">

**Author:** ![xyx](https://avatars.discourse-cdn.com/v4/letter/x/eb8c5e/32.png) [@xyx](https://discuss.elastic.co/u/xyx)\
**Post date:** [December 28, 2019, 9:13am UTC](https://discuss.elastic.co/t/stats-api-timeout-error-when-i-delete-some-indices-in-kibana/213250/4 "2019-12-28T09:13:58Z")

</div>

And mater node is not the cordinating node.I write data in other nodes.kibana will ues the stats api?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 28, 2019, 9:22am UTC](https://discuss.elastic.co/t/stats-api-timeout-error-when-i-delete-some-indices-in-kibana/213250/5 "2019-12-28T09:22:47Z")

</div>

Please do not post images of the screen as they are hard to read and impossible to search. Instead run the commands David listed and provide the output in a formatted form.

---

<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 25, 2020, 9:30am UTC](https://discuss.elastic.co/t/stats-api-timeout-error-when-i-delete-some-indices-in-kibana/213250/6 "2020-01-25T09:30:00Z")

</div>

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