Kibana support for Date_Range field types in Date Histograms and for Timepicker #33762
Labels
enhancement
New value added to drive a business result
Feature:Data Views
Data Views code and UI - index patterns before 8.0
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
Describe the feature:
Elasticsearch supports date_range types, but Kibana identifies these types as unknown. It would be good if these fields could be used in Kibana as the Time Filter field for an index, and also for Date Histograms.
Using a date_range field as the field for a time filter should also allow the user to specify the date range relation parameter (WITHIN, CONTAINS, INTERSECTS) so users can specify the required behavior for each visualization or dashboard for that index
Date_Range fields should also support Date Histograms. Elasticsearch has support for this aggregation as an open item (issue #34644), but Kibana should support it when ready.
Describe a specific use case for the feature:
Much of our data has a "Session"-like nature, with a start and end date. Currently, we write a record once when the session begins with the correct start date, and an end date of "2099". When the session ends, we update the records with the correct end date. Right now we can do some interesting things in Kibana:
We can use the Start Date as the Time Filter field, and get metrics about session start started in a given range.
Or we don't use any Time Filter, and instead set a Dashboard filter where "end date is > 2099", which let's us see metrics about all open sessions.
But our end user would like to be able to look at a given time range, say month or day and see metrics about the sessions that were active during that period, such as "top 10 counties" with active sessions during that period. Right now that's possible by adding 2 filters manually to the dashboard ("start date < date of interest" and "end date > date of interest"). But this isn't very intuitive. It would be great if the time filter could be used for this.
Supporting Date Histograms then could be used to get the Counts, or Averages, or Top Hits by bucket, letting us see stuff like the Top Country for each month for the last year, etc.
The text was updated successfully, but these errors were encountered: