# Calculate time length between two logs using timestamp?

**URL:** <https://discuss.elastic.co/t/calculate-time-length-between-two-logs-using-timestamp/24816>\
**Category:** Logstash\
**Created:** [July 2, 2015, 3:59pm UTC](https://discuss.elastic.co/t/calculate-time-length-between-two-logs-using-timestamp/24816 "2015-07-02T15:59:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smasell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smasell/32/43483_2.png) [@Smasell](https://discuss.elastic.co/u/Smasell)\
**Post date:** [July 2, 2015, 3:59pm UTC](https://discuss.elastic.co/t/calculate-time-length-between-two-logs-using-timestamp/24816/1 "2015-07-02T15:59:09Z")

</div>

Hi!!!  
I wonder does Logstash provides option to calculate time length between two logs using timestamp?  
Something like this log2.timestamp - log1.timestamp.

---

<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:** [July 2, 2015, 11:31pm UTC](https://discuss.elastic.co/t/calculate-time-length-between-two-logs-using-timestamp/24816/2 "2015-07-02T23:31:41Z")

</div>

[https://www.elastic.co/guide/en/logstash/current/plugins-filters-elapsed.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-elapsed.html) 🙂

---

<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:** [July 6, 2017, 5:35am UTC](https://discuss.elastic.co/t/calculate-time-length-between-two-logs-using-timestamp/24816/3 "2017-07-06T05:35:40Z")

</div>


