Time Duration difference calculation in Logstash

I hope this would be helpful for you

Convert Elapsed Time to Duration