# Timestamp between now and now-24h

**URL:** https://discuss.elastic.co/t/timestamp-between-now-and-now-24h/190739
**Category:** Kibana
**Created:** [July 16, 2019, 1:16pm UTC](https://discuss.elastic.co/t/timestamp-between-now-and-now-24h/190739 "2019-07-16T13:16:49Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Digital](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/digital/32/41054_2.png) [@Digital](https://discuss.elastic.co/u/Digital)
#### Post date: [July 16, 2019, 1:16pm UTC](https://discuss.elastic.co/t/timestamp-between-now-and-now-24h/190739/1 "2019-07-16T13:16:50Z")

</div>

Hello,

Currently I used a curl to get the data on one index. But now I would like to receive the data between now, now-24h.  
However I receive only 10 data 😕 when I see the same time rang on Kibana I can see a lot of data xD

So I don't understand...

Here is my query:

```
 /my_index/_search/ -d '{
"query": {
    "range": {
        "@timestamp": {
          "gte" : "now-24h",
          "lt" : "now"
        }
      }
},
"_source": ["client_ip", "@timestamp", "responseStatus"]

```

}

Can you help me on this part?

Why I use now on the timerange? Because I would like to execute this curl everyday .

Thank you 😉

---

<div class="post-metadata">

### Author: ![Digital](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/digital/32/41054_2.png) [@Digital](https://discuss.elastic.co/u/Digital)
#### Post date: [July 17, 2019, 8:47am UTC](https://discuss.elastic.co/t/timestamp-between-now-and-now-24h/190739/2 "2019-07-17T08:47:19Z")

</div>

Hello,

I need someone to help me to understang the query with kibana.

Best regards

---

<div class="post-metadata">

### Author: ![Digital](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/digital/32/41054_2.png) [@Digital](https://discuss.elastic.co/u/Digital)
#### Post date: [July 18, 2019, 7:44am UTC](https://discuss.elastic.co/t/timestamp-between-now-and-now-24h/190739/3 "2019-07-18T07:44:05Z")

</div>

We can't help me ?

---

<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: [July 18, 2019, 11:08am UTC](https://discuss.elastic.co/t/timestamp-between-now-and-now-24h/190739/4 "2019-07-18T11:08:56Z")

</div>

You need to specify the size you want returned. The default is 10.

---

<div class="post-metadata">

### Author: ![Digital](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/digital/32/41054_2.png) [@Digital](https://discuss.elastic.co/u/Digital)
#### Post date: [July 18, 2019, 11:55am UTC](https://discuss.elastic.co/t/timestamp-between-now-and-now-24h/190739/5 "2019-07-18T11:55:11Z")

</div>

Han ok.

But I don't know exactly how many I can receive the data 😕  
Sometimes I can receive 50 or 300 datas 😕

it is not possible ?

---

<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: [July 18, 2019, 12:03pm UTC](https://discuss.elastic.co/t/timestamp-between-now-and-now-24h/190739/6 "2019-07-18T12:03:35Z")

</div>

Then set size a bit higher.

---

<div class="post-metadata">

### Author: ![Digital](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/digital/32/41054_2.png) [@Digital](https://discuss.elastic.co/u/Digital)
#### Post date: [July 18, 2019, 1:00pm UTC](https://discuss.elastic.co/t/timestamp-between-now-and-now-24h/190739/7 "2019-07-18T13:00:43Z")

</div>

Ok Thanks you I can understand.  
However, If I would like to have the for the last 24h. Is my query is correct?

Because I don't have receive the date present in my discover 😕

Because every 30min I can receive 55 000 data and with the size I can use 10000 max. I'm really stuck on that.

---

<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: [July 19, 2019, 5:17am UTC](https://discuss.elastic.co/t/timestamp-between-now-and-now-24h/190739/8 "2019-07-19T05:17:00Z")

</div>

If you need to retrieve over 10000 documents, you should use [a scroll query](https://www.elastic.co/guide/en/elasticsearch/reference/7.2/search-request-scroll.html).

---

<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: [August 16, 2019, 5:17am UTC](https://discuss.elastic.co/t/timestamp-between-now-and-now-24h/190739/9 "2019-08-16T05:17:11Z")

</div>

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