# Long query timeout configuration?

**URL:** <https://discuss.elastic.co/t/long-query-timeout-configuration/1638>\
**Category:** Kibana\
**Created:** [June 1, 2015, 12:44pm UTC](https://discuss.elastic.co/t/long-query-timeout-configuration/1638 "2015-06-01T12:44:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexRRR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexrrr/32/457_2.png) [@AlexRRR](https://discuss.elastic.co/u/AlexRRR)\
**Post date:** [June 1, 2015, 12:44pm UTC](https://discuss.elastic.co/t/long-query-timeout-configuration/1638/1 "2015-06-01T12:44:00Z")

</div>

Hello!

I've just installed the whole ELK stack for my company and now I am running into some problems, mainly if a query takes too long it will just bring my ES servers to their knees likely resource starvation.

I see that kibana.yaml has the following (default) settings:

```
# Time in milliseconds to wait for responses from the back end or elasticsearch.
# This must be > 0
request_timeout: 300000

```

AFAIK this request timeout value should be set on each search to ES as a _timeout_ paramenter, but still I don't see it in elasticsearch request body. (On a dashboard looking at the request for a graph). Am I missing something?

Best regards,

Alex

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 2, 2015, 11:32am UTC](https://discuss.elastic.co/t/long-query-timeout-configuration/1638/2 "2015-06-02T11:32:59Z")

</div>

A query in ES will run, there is no timeout. The only current way to stop the query is to restart the ES nodes.

If a query is causing problems then it's usually best to look at that and see what it does and how you can alter either the query or your cluster (architecture or data) to help fix it.

---

<div class="post-metadata">

**Author:** ![AlexRRR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexrrr/32/457_2.png) [@AlexRRR](https://discuss.elastic.co/u/AlexRRR)\
**Post date:** [June 22, 2015, 12:45pm UTC](https://discuss.elastic.co/t/long-query-timeout-configuration/1638/3 "2015-06-22T12:45:24Z")

</div>

Thank you very much for your reply, I am still looking at options, it might be that our ES cluster is just not big enough for the amount of data.

---

<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:** [July 6, 2017, 2:17pm UTC](https://discuss.elastic.co/t/long-query-timeout-configuration/1638/4 "2017-07-06T14:17:42Z")

</div>


