Retrieve more than 10 logs

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
                                   }
                                 }
                                }
                           ]
                        }
                      }
                    }

               })

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

1 Like

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?

Not by default.

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