Hi all,
i am trying to create a new field (time_difference) in Kibana 7.4.2 to calculate the difference between two timestamp.
First i tried this
doc['@timestamp'].value - doc['p.dateTimeSend'].value
and i received
Script is invalid. View script preview for details
i also tried:
doc['@timestamp'].value.getMillis() - doc['p.dateTimeSend'].value.getMillis()
and i receive the same resut: Script is invalid. View script preview for details
Please tell me what is wrong with my script.
Thanks in advance!