# Kibana Discover: Request Timeout after 30000ms when searching large documents

**URL:** <https://discuss.elastic.co/t/kibana-discover-request-timeout-after-30000ms-when-searching-large-documents/98069>\
**Category:** Kibana\
**Created:** [August 23, 2017, 12:17pm UTC](https://discuss.elastic.co/t/kibana-discover-request-timeout-after-30000ms-when-searching-large-documents/98069 "2017-08-23T12:17:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![agonzalez](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@agonzalez](https://discuss.elastic.co/u/agonzalez)\
**Post date:** [August 23, 2017, 12:17pm UTC](https://discuss.elastic.co/t/kibana-discover-request-timeout-after-30000ms-when-searching-large-documents/98069/1 "2017-08-23T12:17:58Z")

</div>

On kibana when i try to search or filter on a index that contains documents that has field very large ( it stores large text file of 5000 lines or more) I got these error but i dont see any error in logs file kibana or elasticsearch

Discover: Request Timeout after 30000ms

Less Info  
OK  
Error: Request Timeout after 30000ms  
at [http://192.xxxx:5601/bundles/kibana.bundle.js?v=15382:13:4431](http://192.xxxx:5601/bundles/kibana.bundle.js?v=15382:13:4431)  
at [http://192.xxx:5601/bundles/kibana.bundle.js?v=15382:13:4852](http://192.xxx:5601/bundles/kibana.bundle.js?v=15382:13:4852)

heap size was increased to 12gb

is there anyway to improve and be able to manage and search indexes that contains large text documents ?

---

<div class="post-metadata">

**Author:** ![agonzalez](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@agonzalez](https://discuss.elastic.co/u/agonzalez)\
**Post date:** [August 23, 2017, 12:54pm UTC](https://discuss.elastic.co/t/kibana-discover-request-timeout-after-30000ms-when-searching-large-documents/98069/2 "2017-08-23T12:54:40Z")

</div>

I tried to change elasticsearch.requestTimeout: 900000 and restart but it doesnt work error still says 30000ms

Also if i do the query on visualize table that doesnt show the large field it works.

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [August 23, 2017, 5:56pm UTC](https://discuss.elastic.co/t/kibana-discover-request-timeout-after-30000ms-when-searching-large-documents/98069/3 "2017-08-23T17:56:58Z")

</div>

The problem might be another timeout caused by sending a lot of data over the network, or caused by parsing a large amount of data.

You can use the Source Filters in Management \> Index Patterns to prevent that field from being included in queries as you interact with Kibana. You just pick the index pattern (or patterns) you're using with that field and add it to the list. I believe it just adds it as an `excludes` in the query, but I'm not totally sure. The important part is that you won't be sending or parsing those documents in the request anymore.

---

<div class="post-metadata">

**Author:** ![agonzalez](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@agonzalez](https://discuss.elastic.co/u/agonzalez)\
**Post date:** [August 24, 2017, 12:59pm UTC](https://discuss.elastic.co/t/kibana-discover-request-timeout-after-30000ms-when-searching-large-documents/98069/4 "2017-08-24T12:59:58Z")

</div>

But that field is the one i want to explore in kibana. Is there anyway to increase this kibana timeout to handle large documents or that kibana dont try to load all data from documents at same time and only when clicking on one?

---

<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:** [August 24, 2017, 1:05pm UTC](https://discuss.elastic.co/t/kibana-discover-request-timeout-after-30000ms-when-searching-large-documents/98069/5 "2017-08-24T13:05:05Z")

</div>

One way to load less data under Discover would be to change the value of `discover:sampleSize` under `Management - Advanced settings`. This is however a global setting.

---

<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 21, 2017, 1:05pm UTC](https://discuss.elastic.co/t/kibana-discover-request-timeout-after-30000ms-when-searching-large-documents/98069/6 "2017-09-21T13:05:22Z")

</div>

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