# Getting documents not in current timerange

**URL:** <https://discuss.elastic.co/t/getting-documents-not-in-current-timerange/98507>\
**Category:** Kibana\
**Created:** [August 28, 2017, 5:49am UTC](https://discuss.elastic.co/t/getting-documents-not-in-current-timerange/98507 "2017-08-28T05:49:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sLuvpreet33](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sluvpreet33/32/50626_2.png) [@sLuvpreet33](https://discuss.elastic.co/u/sLuvpreet33)\
**Post date:** [August 28, 2017, 5:49am UTC](https://discuss.elastic.co/t/getting-documents-not-in-current-timerange/98507/1 "2017-08-28T05:49:25Z")

</div>

I want to get documents which are not in the current timerange in kibana.

I have some data about bookings and users.

I want to see the users who have not done booking this month(or any selected timerange). But info is stored with booking timestamp. Means `booking_time` is the main timefield.

So, How can I achieve this ?

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [August 28, 2017, 5:54pm UTC](https://discuss.elastic.co/t/getting-documents-not-in-current-timerange/98507/2 "2017-08-28T17:54:59Z")

</div>

Hi

You can achieve this by using the filter in the timestamp as shown: Choose @timestamp field and `is not between` filter - and fill in the From, To columns, so you can derive the desired documents which are not in the current timerange.

 ![56 AM](https://us1.discourse-cdn.com/elastic/original/3X/5/0/505095a89c087a50655232a8bb98a14473e0ea20.png)

Thanks  
Rashmi

---

<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, 5:55pm UTC](https://discuss.elastic.co/t/getting-documents-not-in-current-timerange/98507/3 "2017-09-25T17:55:16Z")

</div>

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