Hi there
I have 2 Date fields Field1 and Field2 and LABEL. I need to have a visualization which is a list which shows the difference in seconds for all the items:
I tried with scripted field but come with error:
Discover: class_cast_exception: Cannot apply [-] operation to types [org.joda.time.MutableDateTime] and [org.joda.time.MutableDateTime].
Hi
I am using Version: 6.3.1
my Script :
doc['LastHeartbeatCheck'].value - doc['currentTimesStamp'].value
type: number Format: Duration InputFormat: seconds OutputFormat: Human Readable
the 2 fields (LastHeartbeatCheck, currentTimesStamp) are date fields... with value for eg
LastHeartbeatCheck = August 9th 2018, 15:00:12.000
currentTimesStamp=August 9th 2018, 15:00:12.000
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.