using Kibana 5.4.1
My documents have 2 date-type fields: "starttime" and "endtime". I am trying to create a scripted field with the difference, in hours.
In the script box, I have this
(doc['endtime'].value - doc['starttime'].value)/3600
but it gives me the result as a float. For example: 24.000
How can I cast it to an integer? I don't find a clear clue in the documentation...