# Filter data from 6PM today and for 24 hours

**URL:** <https://discuss.elastic.co/t/filter-data-from-6pm-today-and-for-24-hours/218900>\
**Category:** Kibana\
**Created:** [February 12, 2020, 6:10am UTC](https://discuss.elastic.co/t/filter-data-from-6pm-today-and-for-24-hours/218900 "2020-02-12T06:10:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Post date:** [February 12, 2020, 6:10am UTC](https://discuss.elastic.co/t/filter-data-from-6pm-today-and-for-24-hours/218900/1 "2020-02-12T06:10:30Z")

</div>

Hi,  
I would like to filter a visualisation to show the data from 6 PM every day until 6 PM the next day.  
That is because I have a process which starts daily at 6 PM every day.  
How is that possible? If at all?  
Examples:  
Now it is 5 PM - Show the data from yesterday at 6 PM until now (23 hours)  
Now is 8 PM - Show the data from today at 6 PM and until now (2 hours)  
Cheers!

---

<div class="post-metadata">

**Author:** ![vinu89](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinu89/32/45939_2.png) [@vinu89](https://discuss.elastic.co/u/vinu89)\
**Post date:** [February 12, 2020, 6:21am UTC](https://discuss.elastic.co/t/filter-data-from-6pm-today-and-for-24-hours/218900/2 "2020-02-12T06:21:06Z")

</div>

click on show dates which is next to time field.... Select the absolute timing and mention the timing which u want

![image](https://us1.discourse-cdn.com/elastic/original/3X/5/2/523dbc5bc9aa78402de5959b9ea34f918c36b2e7.png)

---

<div class="post-metadata">

**Author:** ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Post date:** [February 12, 2020, 6:31am UTC](https://discuss.elastic.co/t/filter-data-from-6pm-today-and-for-24-hours/218900/3 "2020-02-12T06:31:59Z")

</div>

Thanks for the answer.  
If I choose now, yesterday at 6 PM. Will it get updated tomorrow?  
i.e. tomorrow it will show from today at 6 PM?  
Thanks!~

---

<div class="post-metadata">

**Author:** ![vinu89](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinu89/32/45939_2.png) [@vinu89](https://discuss.elastic.co/u/vinu89)\
**Post date:** [February 12, 2020, 6:38am UTC](https://discuss.elastic.co/t/filter-data-from-6pm-today-and-for-24-hours/218900/4 "2020-02-12T06:38:54Z")

</div>

in kibana by default it shows u last 15 minutes u have to select the other time filters when you need... It wont get updated automatically u have to select it when u want.

---

<div class="post-metadata">

**Author:** ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Post date:** [February 12, 2020, 10:44pm UTC](https://discuss.elastic.co/t/filter-data-from-6pm-today-and-for-24-hours/218900/5 "2020-02-12T22:44:40Z")

</div>

Thanks.  
I need automatically updates.  
I want to filter the data from 6 PM until now.  
So the intervals are going to change all day long. from 0 last hours up to 24 last hours.  
At 6 PM I would like to restart the filter and show 0 last hours.

So I really am looking for a dynamic filter that will change constantly.

So I encountered the date math knowledge article and got this idea, will it work?!  
How should be implemented?

_Pseudo code:_  
if(now \< 6 PM)  
**Filter** = Time-Stamp \>= now-1d/d+18h AND Time-Stamp \< now  
if(now \> 6 PM)  
**Filter** = Time-Stamp \>= now/d+18h AND Time-Stamp \< now

Cheers!

---

<div class="post-metadata">

**Author:** ![vinu89](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinu89/32/45939_2.png) [@vinu89](https://discuss.elastic.co/u/vinu89)\
**Post date:** [February 13, 2020, 6:15am UTC](https://discuss.elastic.co/t/filter-data-from-6pm-today-and-for-24-hours/218900/6 "2020-02-13T06:15:02Z")

</div>

We have done this thru elastic API when u create ur own customised dashboard in other languages... but i m not pretty sure in kibana

---

<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:** [March 12, 2020, 6:15am UTC](https://discuss.elastic.co/t/filter-data-from-6pm-today-and-for-24-hours/218900/7 "2020-03-12T06:15:03Z")

</div>

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