# Kibana issue with relative and absolute range combination

**URL:** https://discuss.elastic.co/t/kibana-issue-with-relative-and-absolute-range-combination/291972
**Category:** Kibana
**Created:** [December 15, 2021, 12:48pm UTC](https://discuss.elastic.co/t/kibana-issue-with-relative-and-absolute-range-combination/291972 "2021-12-15T12:48:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Angelos](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Angelos](https://discuss.elastic.co/u/Angelos)
#### Post date: [December 15, 2021, 12:48pm UTC](https://discuss.elastic.co/t/kibana-issue-with-relative-and-absolute-range-combination/291972/1 "2021-12-15T12:48:54Z")

</div>

**Elasticsearch Platinum: 7.16.1**

Hi!

We recently found out that when we use **relative** as start date and **absolute** as end date it doesn't work as intended.

For example when I select **relative start date**"14 days ago" and **absolute end date**"Dec 4, 2021..." it will show only 4 days of data not 14 days from Dec 4th.

 ![2021-12-15_13-43](https://us1.discourse-cdn.com/elastic/original/3X/f/3/f3cf66f8c787833d1d899b10ff661100c62820c9.png)

It seems like it ignores the absolute option and uses only "from now".

Is it how it is supposed to work?

/Angelos

---

<div class="post-metadata">

### Author: ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)
#### Post date: [December 15, 2021, 12:55pm UTC](https://discuss.elastic.co/t/kibana-issue-with-relative-and-absolute-range-combination/291972/2 "2021-12-15T12:55:54Z")

</div>

Hi  
Yes, the ` ~14 days ago` means 14 days ago from now, so it's not related to the absolute date you've configured. it should work like suggested in this issue, right?

> <https://github.com/elastic/kibana/issues/121167>
>
> This may be a bit of an edge case, but it would be useful for us to be able to s…elect an absolute start date, and then have a relative date of +24h from that start date.
> The reverse may also be useful, so that we set an absolute end date and have the ability to set the start date relative to it, say -7 days.
> 
> At the moment, we can only set dates relative to 'now'.
> 
> \*\*Describe a specific use case for the feature:\*\*
> We monitor error logs from our applications on a 24 hour cycle from 8am-8am every day.
> At the moment we need to set both 'start' and 'end' date to absolute values in the datepicker to set the correct timespan. It would be handy to be able to set 'end' date to 8am today and 'start' date to -24h relative to end date.
> This is not a major feature by any means but I thought I'd raise it...!

Best,  
Matthias

---

<div class="post-metadata">

### Author: ![Angelos](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Angelos](https://discuss.elastic.co/u/Angelos)
#### Post date: [December 15, 2021, 1:50pm UTC](https://discuss.elastic.co/t/kibana-issue-with-relative-and-absolute-range-combination/291972/3 "2021-12-15T13:50:18Z")

</div>

Hi @matw,

Exactly! There are many situations in our cluster that we need to set a specific period of time from a starting point. This would facilitate the procedure of calculating a large number of days when using an absolute in both start and end dates.

/Angelos

---

<div class="post-metadata">

### Author: ![stevedearl](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@stevedearl](https://discuss.elastic.co/u/stevedearl)
#### Post date: [December 15, 2021, 3:14pm UTC](https://discuss.elastic.co/t/kibana-issue-with-relative-and-absolute-range-combination/291972/4 "2021-12-15T15:14:12Z")

</div>

Yay! I raised the GitHub issue around allowing relative dates to absolute start/stop values and wasn't sure if it was just me that this was a problem for...!

Glad to hear I'm not the only one @Angelos, even though at the moment there's not any solution...!

Steve

---

<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: [January 12, 2022, 3:15pm UTC](https://discuss.elastic.co/t/kibana-issue-with-relative-and-absolute-range-combination/291972/5 "2022-01-12T15:15:11Z")

</div>

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