Hi, using a table in Kibana Lens I can't get a formatted date at the "Log Date" column. The date format changes according to the time period. Below is the JSON I've been using and the screenshots with the issue
That setting in the Lens panel can configure how fine the date bucket/histogram should be, and not the date formatter.
At the moment there's not specific Lens option to format that date, rather a Kibana-wise option available in Advanced Settings named dateFormat:scaled where you can specify how dates should be formatted:
I Stand Corrected! This does not appear to work for Lens Table (works most everywhere else, I am surprised)
@fefontana Apologies for the confusion, it is a good trick to know though
There is another method to do this... Set the date format pattern for that field in its index pattern, and that will only affect the display for that field wherever it is used.
Thank you, Marco for your answer.
I changed in "Advanced Options" the date format mask (to DD-MM-YYYY HH:mm:ss) and the date column shows the correct format, but not the correct value. If you take a look at the JSON, the first two rows shows wrong minutes and seconds, ie., 02-07-2021 12:00:00 (-03:00 GMT) is not equal to 2021-07-02T15:35:33.458Z. Take a look at the image below:
Thank you Stephen for your response.
I also changed the date format at the pattern field, but the result is the same as the screen at the previous post, no change.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.