# Want to add duration (in seconds) to timestamp

**URL:** https://discuss.elastic.co/t/want-to-add-duration-in-seconds-to-timestamp/125003
**Category:** Logstash
**Created:** [March 21, 2018, 2:29pm UTC](https://discuss.elastic.co/t/want-to-add-duration-in-seconds-to-timestamp/125003 "2018-03-21T14:29:10Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [March 22, 2018, 1:50am UTC](https://discuss.elastic.co/t/want-to-add-duration-in-seconds-to-timestamp/125003/2 "2018-03-22T01:50:46Z")

</div>

If you have both the start time (timestamp) and end time in the same event then [this](https://discuss.elastic.co/t/time-difference-between-two-fields-in-a-csv-using-ruby-plugin/122115/2?u=badger) might help.

If you have the start time and end time in different events then an [aggregate filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-aggregate.html) might work for you.

---

_[View the full topic](https://discuss.elastic.co/t/want-to-add-duration-in-seconds-to-timestamp/125003)._
