I have two fields closed_date and open_date which are in date format and are aggregatable. i want to create a new scripted field using scripting to calculate the difference between them.
We are using ELK 7.3.0 version
My fields are as below...
closed_date = Feb 16, 2020 @ 15:00:06.000,
open_date = Feb 13, 2020 @ 14:40:06.000
I tried a simple script query with the sample ecommerce dataset and works as expected. I just changed the .millis property by the recommended method .toInstant().toEpochMilli().
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.