# Retrieve more than 10 logs

**URL:** <https://discuss.elastic.co/t/retrieve-more-than-10-logs/98538>\
**Category:** Elasticsearch\
**Created:** [August 28, 2017, 10:24am UTC](https://discuss.elastic.co/t/retrieve-more-than-10-logs/98538 "2017-08-28T10:24:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomer](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@tomer](https://discuss.elastic.co/u/tomer)\
**Post date:** [August 28, 2017, 10:24am UTC](https://discuss.elastic.co/t/retrieve-more-than-10-logs/98538/1 "2017-08-28T10:24:09Z")

</div>

Hi,

I wrote a query that asks for all messages ever sent, in a certain time range.  
When looking at the data recieved there are only 10 logs in the output. How can I get all the logs from this time range.

```
index: 'filebeat-*',
                    type: 'log',
                    body:
                    {
                       "query": {
                        "bool":{
                          "must": [
                                { "match": {"recordType":"MT"}},
                                  { "range": {
                                   "MedGotMsgFromApi": {
                                     "gte": gte,
                                     "lte": lte
                                   }
                                 }
                                }
                           ]
                        }
                      }
                    }

               })
```

---

<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:** [August 28, 2017, 10:26am UTC](https://discuss.elastic.co/t/retrieve-more-than-10-logs/98538/2 "2017-08-28T10:26:31Z")

</div>

Have a look at [https://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-request-from-size.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-request-from-size.html)

---

<div class="post-metadata">

**Author:** ![tomer](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@tomer](https://discuss.elastic.co/u/tomer)\
**Post date:** [August 28, 2017, 10:47am UTC](https://discuss.elastic.co/t/retrieve-more-than-10-logs/98538/3 "2017-08-28T10:47:54Z")

</div>

Thanks,

Now from looking in there, I saw:

> Note that from + size can not be more than the index.max\_result\_window index setting which defaults to 10,000. See the Scroll or Search After API for more efficient ways to do deep scrolling.

does this mean I can't show more than 10,000 logs?

---

<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:** [August 28, 2017, 10:58am UTC](https://discuss.elastic.co/t/retrieve-more-than-10-logs/98538/4 "2017-08-28T10:58:00Z")

</div>

Not by default.

---

<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 25, 2017, 10:58am UTC](https://discuss.elastic.co/t/retrieve-more-than-10-logs/98538/5 "2017-09-25T10:58:24Z")

</div>

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