Kibana 5.1 possible to calculate time difference and place it in a field in kibana at runtime?

hi @asp

You would use a scripted field for that.

My response here - to a similar question - has some links to resources to help you get started Plot latency measure based on two time fields in an index