# Cannot run query of time length 7 days or longer

**URL:** <https://discuss.elastic.co/t/cannot-run-query-of-time-length-7-days-or-longer/26100>\
**Category:** Kibana\
**Created:** [July 22, 2015, 5:32pm UTC](https://discuss.elastic.co/t/cannot-run-query-of-time-length-7-days-or-longer/26100 "2015-07-22T17:32:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![allenmchan](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@allenmchan](https://discuss.elastic.co/u/allenmchan)\
**Post date:** [July 22, 2015, 5:32pm UTC](https://discuss.elastic.co/t/cannot-run-query-of-time-length-7-days-or-longer/26100/1 "2015-07-22T17:32:28Z")

</div>

Spawning from: [Kibana search 7 days throws error](https://discuss.elastic.co/t/kibana-search-7-days-throws-error/25864/9)  
and redirected from github [https://github.com/elastic/kibana/issues/4467](https://github.com/elastic/kibana/issues/4467)

Can someone educate me why this issue seems to be on the elasticsearch side? The github response was really vague

Original Github message  
"I am trying to query data from my elasticsearch instance using kibana. Queries under 7 days work fine however the queries fail when i do 7 days or 1 month.

I am running Kibana 4.1.1 and Elasticsearch 1.7.0

I have the default config file with the modification of  
request\_timeout: 600000

I also did this modification on the UI side  
discover:sampleSize 1000

The reason i am opening the issue here is because kibana query fails but running the query in marvel sense works. So i am wondering if there is a timeout setting in the app that i am missing.

I created gist with some information that i hope will help with the troubleshooting.

[https://gist.github.com/allenmchan/f4fed82d7914c3c5171a](https://gist.github.com/allenmchan/f4fed82d7914c3c5171a)"

---

<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:** [July 23, 2015, 6:37am UTC](https://discuss.elastic.co/t/cannot-run-query-of-time-length-7-days-or-longer/26100/2 "2015-07-23T06:37:16Z")

</div>

Given [Kibana search 7 days throws error](https://discuss.elastic.co/t/kibana-search-7-days-throws-error/25864) is still going, let's keep it there so others can see the full context 🙂

---

<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:** [July 23, 2015, 6:37am UTC](https://discuss.elastic.co/t/cannot-run-query-of-time-length-7-days-or-longer/26100/3 "2015-07-23T06:37:18Z")

</div>


