-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Allow pasting timestamps into Start Date and End Date on discover page #159098
Comments
Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations) |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
Nice to have: Also allow pasting a Unix timestamp in seconds or milliseconds past midnight 1st Jan 1970 UTC excluding leap seconds. |
@elastic/eui-team |
@timductive and @stratoula - thanks for pinging us, and apologies for the slower response! You're right that this is something EuiSuperDatePicker doesn't currently support. We'd probably set this at a medium LOE in terms of implementation. What priority would your team set on this? That will help inform how EUI triages this issue and when we set aside time to take a look at it. |
@cee-chen thanx a ton! I will sync with Tim about the prioritization and let you know! |
Just to chip in on the prioritisation as the OP, this is something that adds quite a few crucial seconds when I'm urgently attempting to resolve an issue but I'm never completely blocked by this. I currently work for a small paying hosted-service customer and I would have also used this at my previous place of work who are a bank who pay for on-site licenses. I would also say that the usefulness of this depends on end-users knowing its an option. |
@cee-chen give us a few weeks to prioritize within the context of a larger initiative around usability between kibana and EUI. I'd like to get a list of all the improvements we want to collaborate on and then rank this there. |
@cee-chen In EUISuperDatePicker, it looks like we use kbn-datemath/moment under the hood. Do you think it's possible to attempt to parse whatever date string a user provides, rather than expecting a particular format? |
@mjaggard We have a PR coming that should allow ISO 8601, RFC 2822, and Unix (seconds only, not milliseconds) timestamps to the datepicker absolute tab. We'd love it if you could quickly test it out and let us know if it works for your use case: https://eui.elastic.co/pr_7331/#/templates/super-date-picker Regarding the timezone reconciliation mentioned in your issue description, I'm leaving it up to the Moment library to interpret the missing timezone currently - let us know if that works for you. |
Perfect, thank you. |
FYI - we added a 1 second debounce to the date input to allow users who are manually entering timestamps to finish typing (otherwise Moment thinks you've entered a Unix timestamp the second you type in a single digit 😅). Please feel free to leave feedback if that extra time delay significantly impacts the user flow you were looking for. More rationale and discussion for that change can be found here: elastic/eui#7331 (review) Also, as a heads up, this will take another ~2 weeks or so to reach Kibana main but should be in by 8.12 release. |
@cee-chen this is fantastic! Thanx a lot |
Describe the feature:
When I go to the discover page at /app/discover I can enter date times for the start and end dates if I make them absolute but they must be in a specific format
MMM D, YYYY @ HH:mm:ss.SSS
which is not how timestamps exist in our log files - we use ISO 8601. It would be great if pasting a timestamp in various formats such as ISO 8601 (as long as they're unambiguous) would reformat automatically into the current format.Describe a specific use case for the feature:
I frequently start from a timestamp in a single log file or in our audit when looking to understand an issue. I then need to search for related logs or other data using Kibana but first I have to take the time to reformat my date time or to select the time using the widget.
Possible issues
Timestamps in Logstash and timestamps pasted may each have a timezone which requires some reconciliation which may not be trivial. My guess is that a missing timezone in ISO 8601 would be best interpreted as UTC rather than "Local time" for example.
The text was updated successfully, but these errors were encountered: