# Need to calculate duration run time

**URL:** <https://discuss.elastic.co/t/need-to-calculate-duration-run-time/72947>\
**Category:** Logstash\
**Created:** [January 26, 2017, 8:34pm UTC](https://discuss.elastic.co/t/need-to-calculate-duration-run-time/72947 "2017-01-26T20:34:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amir.duvdevani](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@amir.duvdevani](https://discuss.elastic.co/u/amir.duvdevani)\
**Post date:** [January 26, 2017, 8:34pm UTC](https://discuss.elastic.co/t/need-to-calculate-duration-run-time/72947/1 "2017-01-26T20:34:30Z")

</div>

I have 2 fields , start time and endtime with datetime format.  
how could I add new field in logstash or Kibana that will include the duration time = end time - start time ?

thanks  
Amir

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 26, 2017, 9:33pm UTC](https://discuss.elastic.co/t/need-to-calculate-duration-run-time/72947/2 "2017-01-26T21:33:02Z")

</div>

You may want to search the history here, that has been asked a number of times in the past.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 23, 2017, 9:33pm UTC](https://discuss.elastic.co/t/need-to-calculate-duration-run-time/72947/3 "2017-02-23T21:33:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
