# Kibana time out during discover request on index with large number of fields while direct elastic query is fast

**URL:** <https://discuss.elastic.co/t/kibana-time-out-during-discover-request-on-index-with-large-number-of-fields-while-direct-elastic-query-is-fast/94696>\
**Category:** Kibana\
**Created:** [July 26, 2017, 7:25pm UTC](https://discuss.elastic.co/t/kibana-time-out-during-discover-request-on-index-with-large-number-of-fields-while-direct-elastic-query-is-fast/94696 "2017-07-26T19:25:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmoxam](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mmoxam](https://discuss.elastic.co/u/mmoxam)\
**Post date:** [July 26, 2017, 7:25pm UTC](https://discuss.elastic.co/t/kibana-time-out-during-discover-request-on-index-with-large-number-of-fields-while-direct-elastic-query-is-fast/94696/1 "2017-07-26T19:25:27Z")

</div>

I have an index that has over 800 fields. Each field is either an integer, float or a small string.  
When I search the elastic index directly the query returns very quickly 43ms. I've tried this in the Dev Console in Kibana as well as with curl.

However when querying using Discover the request times out with the following error:

Error: Request Timeout after 120000ms  
ErrorAbstract@[http://hostname.com:5601/bundles/kibana.bundle.js?v=15405:12:24939](http://hostname.com:5601/bundles/kibana.bundle.js?v=15405:12:24939)  
StatusCodeError@[http://hostname.com:5601/bundles/kibana.bundle.js?v=15405:12:28395](http://hostname.com:5601/bundles/kibana.bundle.js?v=15405:12:28395)  
Transport.prototype.request/requestTimeoutId\<@[http://hostname.com:5601/bundles/kibana.bundle.js?v=15405:13:4431](http://hostname.com:5601/bundles/kibana.bundle.js?v=15405:13:4431)  
Transport.prototype.\_timeout/id\<@[http://hostname.com:5601/bundles/kibana.bundle.js?v=15405:13:4852](http://hostname.com:5601/bundles/kibana.bundle.js?v=15405:13:4852)

I checked the Kibana logs and don't see any specific errors neither in elastic search logs.

Has anyone seen this before why would Kibana discover time out when a regular query does not?

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [July 27, 2017, 10:06pm UTC](https://discuss.elastic.co/t/kibana-time-out-during-discover-request-on-index-with-large-number-of-fields-while-direct-elastic-query-is-fast/94696/2 "2017-07-27T22:06:27Z")

</div>

What version of ES and kibana are you using ? Also am thinking, that Kibana timeout depends on several factors : A proxy is in-between you and your cluster and the proxy is misbehaving, network latency or do you have your cluster setup to use X-Pack Monitoring? Is it running low on memory? etc.

thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![mmoxam](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mmoxam](https://discuss.elastic.co/u/mmoxam)\
**Post date:** [July 28, 2017, 2:19pm UTC](https://discuss.elastic.co/t/kibana-time-out-during-discover-request-on-index-with-large-number-of-fields-while-direct-elastic-query-is-fast/94696/3 "2017-07-28T14:19:07Z")

</div>

I'm using version 5.5, no proxy, cluster is fine, no network latency, 128GB of memory.  
I think the problem might be that it's just alot of data to bring back...  
800 fields is alot. When I limit the sample size in Kibana to 20 it does come back faster. Still not as fast as normal but noticeably faster.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [July 28, 2017, 3:58pm UTC](https://discuss.elastic.co/t/kibana-time-out-during-discover-request-on-index-with-large-number-of-fields-while-direct-elastic-query-is-fast/94696/4 "2017-07-28T15:58:00Z")

</div>

yea, I suspect thats the reason. I have seen such issues filed in many areas .  
This one is too : Subscribe to this for more updates...

> <https://github.com/elastic/kibana/issues/10658>

---

<div class="post-metadata">

**Author:** ![Ranjith\_M](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ranjith_m/32/19272_2.png) [@Ranjith\_M](https://discuss.elastic.co/u/Ranjith_M)\
**Post date:** [August 21, 2017, 3:51pm UTC](https://discuss.elastic.co/t/kibana-time-out-during-discover-request-on-index-with-large-number-of-fields-while-direct-elastic-query-is-fast/94696/5 "2017-08-21T15:51:27Z")

</div>

Hello Rashmi,

We have the same challenge, here are the the ELK Cluster details  
Elastic/Kibana: 5.5  
Memory : 128gb of ram per node  
Heap: 24GB per node  
Number of Nodes : 5

**Discover tab timeout issues**  
We never had this challenge earlier with fields ranging from 10 to 450. But now we have a data set which contains 1120 fields approximately, and discover pages fails with timeout exception.

The bug you have mentioned above is Index pattern, we are not seeing any challenges with that.

Any help is much appreciated

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [August 23, 2017, 10:24pm UTC](https://discuss.elastic.co/t/kibana-time-out-during-discover-request-on-index-with-large-number-of-fields-while-direct-elastic-query-is-fast/94696/6 "2017-08-23T22:24:19Z")

</div>

hey

Which version of 5.5 you are using? This should be fixed in 5.5.2+  
See: [https://github.com/elastic/kibana/pull/13047](https://github.com/elastic/kibana/pull/13047)

Thanks  
Rashmi

---

<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:** [September 20, 2017, 10:24pm UTC](https://discuss.elastic.co/t/kibana-time-out-during-discover-request-on-index-with-large-number-of-fields-while-direct-elastic-query-is-fast/94696/7 "2017-09-20T22:24:33Z")

</div>

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