# Find time difference between series of events with uniqueid

**URL:** https://discuss.elastic.co/t/find-time-difference-between-series-of-events-with-uniqueid/257911
**Category:** Logstash
**Created:** [December 7, 2020, 9:09pm UTC](https://discuss.elastic.co/t/find-time-difference-between-series-of-events-with-uniqueid/257911 "2020-12-07T21:09:53Z")
**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: [December 7, 2020, 9:16pm UTC](https://discuss.elastic.co/t/find-time-difference-between-series-of-events-with-uniqueid/257911/2 "2020-12-07T21:16:35Z")

</div>

You may be able to use an aggregate filter. See [example 3](https://www.elastic.co/guide/en/logstash/current/plugins-filters-aggregate.html#plugins-filters-aggregate-example3) in the documentation.

An example of calculating time difference is [here](https://discuss.elastic.co/t/time-difference-between-two-fields-in-a-csv-using-ruby-plugin/122115/2).

---

_[View the full topic](https://discuss.elastic.co/t/find-time-difference-between-series-of-events-with-uniqueid/257911)._
