I am trying for another way on this. Instead of using ruby at logstash, we can try to push for painless script to calculate us the durations from kibana.
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.