Hi there
Can someone help me and explain how do I get the selected date in calendar either in a TSVB visualization or in a scripted field (java.calendar Class works but Calendar.Events not )
Thank you in advance
Hi there
Can someone help me and explain how do I get the selected date in calendar either in a TSVB visualization or in a scripted field (java.calendar Class works but Calendar.Events not )
Thank you in advance
Hi @jarcastillo
in Kibana you have a time picker which makes you select a time interval, so two dates/times.
There are few options there, but what kind of use case you have?
I mean, do you need to know exactly the beginning and ending dates, just one of them, how long is the interval picked (no matter the exact date), etc...
For instance, in Lens, there are some helpers in the formula
context to help with the current date, using the now()
function, or with the time interval (time_range()
function), and with some date math being able to compute dynamic intervals.
With a runtime field (scripted fields are deprecated and runtime fields are the recommended way to write it now) you have more options to work with dates (at document level though).
Hi Marco
Thank you for your answer; there is no need to do any kind of calculation with the selected date other than the interval days in the selected date, witch by the way, we already calculated using TSVB params_interval, but, the functional team who use the dashboard wants to see the selected dates as a markdown visualization in some areas of the board
I have attached an image so i may explain myself better
Thank you for your support
I suspect that is not strictly possible.
TSVB markdown can give you access to the first and latest timestamp in the data, but that means that the computed can be smaller than the selected one.
Oh i see, thank you for your time @Marco_Liberati ; have a nice day
© 2020. All Rights Reserved - Elasticsearch
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.