-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Add More Customization to Relative Date Format #25815
Copy link
Copy link
Closed as not planned
Labels
Feature:FieldFormattersFeature:LensFeature:VisualizationsGeneric visualization features (in case no more specific feature label is available)Generic visualization features (in case no more specific feature label is available)Team:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//release_note:enhancement
Metadata
Metadata
Assignees
Labels
Feature:FieldFormattersFeature:LensFeature:VisualizationsGeneric visualization features (in case no more specific feature label is available)Generic visualization features (in case no more specific feature label is available)Team:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//release_note:enhancement
Type
Fields
Give feedbackNo fields configured for issues without a type.
Relates to #13784, but this is a specific example.
Describe the feature:
A field formatter that took the difference from a date field versus
nowwherenowis shared (aka the Date Formatter'sRelative Dateformatter). As a step further though, we should be able to control how fine grained the display is. For example, it currently jumps from "a few seconds ago" to "a minute ago" then minute increments until the hour mark (et cetera). It might be nice to see "15 seconds ago" or even "1 m 15 s ago".Describe a specific use case for the feature:
When showing log events, it would be nice to see how long ago a certain event occurred and as time passes into hours, it would be nice to get a more exact timeframe.
Elasticsearch does not support this through script fields using Kibana because Elasticsearch intentionally makes it very hard to get ahold of
nowdynamically (because each shard / field would see a differentnow, which would be wrong).We could solve this differently by supporting script params within Kibana (#19716) and providing the ability to tell ES what "now" is at search time, which would allow the script field to do all of this, but that would be a nice to have versus direct UI support.