Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Relative" time periods should support end times other than "now" #2394

Closed
webmstr opened this issue Dec 18, 2014 · 12 comments · May be fixed by kaizhu256/kibana#25
Closed

"Relative" time periods should support end times other than "now" #2394

webmstr opened this issue Dec 18, 2014 · 12 comments · May be fixed by kaizhu256/kibana#25

Comments

@webmstr
Copy link

webmstr commented Dec 18, 2014

I have some logs that are delayed for, say, 15 minutes. I want to make a dashboard that doesn't have a 15-minute gap between the most recent log entry and "now".

This seems like a job for the "relative" time selection option, but the end time is always "now".

If the same relative controls were enabled for the end time as are available for the start time, I think I would be able to make my dashboard.

@kkirsche
Copy link
Contributor

To say how I had understood it, it's essentially an offset for when "now" is. In the example, this would be a 15-minute offset on when "now" is. Let me know if you are interested in this as I could probably add this without a ton of hassle.

Thanks!

@rashidkpc
Copy link
Contributor

Agreed, this would be nice to have

@marminthibaut
Copy link
Contributor

I can work on it @rashidkpc

@marminthibaut
Copy link
Contributor

Is it ok for you?
kibana-relative

@marminthibaut
Copy link
Contributor

I think that another enhancement could be to update the time range span on top right. Currently it display relative times as it : ~ 30 minutes ago to ~ 15 minutes ago. Is it ok for you?

The problem for me occurred when end time is set to zero. It displays : ~ 30 minutes ago to ~ a few seconds ago, it could displays Last 30 minutes. This problem occurred because the new timepicker set end time to now-0m instead of now.

Should I add this case in the code?

@mut3
Copy link

mut3 commented Dec 8, 2015

+1 for this feature, still not implemented as of 4.3

@dtrv
Copy link

dtrv commented Apr 14, 2016

+1

We also make predictions. So end time set to "minutes|hours|days ahead" would be nice!

@omersi
Copy link

omersi commented Apr 20, 2016

Kibana 4.5
Relative time TO: set only to now.
kibana_relative_time_frame

@Jasper1988
Copy link

I'm also waiting for this option. Would be very handy to compare something with now.

Like 7 days tot 6 days ago with something in an other visualize with 1 day ago till now.

@jlruizmlg
Copy link

+1

@lindell
Copy link

lindell commented Dec 27, 2016

+1

@tbragin
Copy link
Contributor

tbragin commented Jan 5, 2017

Fromhttps://github.com//issues/3419

via @botcher:

For systems that load data in batches (let's say, every 5 minutes), it's useful to have the concept/selector for 'now' to be now-Xminutes. This way, there won't be a drop to 0 of all charts and graphs that are up to current time. I'm not sure at what level this should be configured... Index level?

via @rashidkpc:

You would definitely want this on the index level. This would require the date math parser to have knowledge of the index pattern which it doesn't currently. What happens if 2 indices on the same dashboard have different offsets? What do you put on the right edge of the chart? Is it the actual "now"? Each individual index's offset "now"? The latter would mean you've have 2 bars in the same place that actually reference different times. I can see the use here. There's a lot of edge cases that would need to be explored to make this feasible.

@Bargs Bargs added the good first issue low hanging fruit label Feb 15, 2017
@simianhacker simianhacker self-assigned this Mar 31, 2017
simianhacker added a commit to simianhacker/kibana that referenced this issue Mar 31, 2017
simianhacker added a commit that referenced this issue Apr 7, 2017
* Closes #2394 - Allow relative from and to

* Closes #6732 - Adding support future realtive for time picker
simianhacker added a commit to simianhacker/kibana that referenced this issue Apr 7, 2017
* Closes elastic#2394 - Allow relative from and to

* Closes elastic#6732 - Adding support future realtive for time picker
@tbragin tbragin added the v5.4.0 label Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment