# Aggregate events with start and end date

**URL:** https://discuss.elastic.co/t/aggregate-events-with-start-and-end-date/162371
**Category:** Elasticsearch
**Created:** [December 28, 2018, 5:07pm UTC](https://discuss.elastic.co/t/aggregate-events-with-start-and-end-date/162371 "2018-12-28T17:07:50Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [January 19, 2019, 9:52am UTC](https://discuss.elastic.co/t/aggregate-events-with-start-and-end-date/162371/3 "2019-01-19T09:52:19Z")

</div>

I wonder if you might be able to do this through a scripted aggregation, similar to the example in [this old post](https://discuss.elastic.co/t/display-concurrency-in-data-on-kibana/26006/2).

---

_[View the full topic](https://discuss.elastic.co/t/aggregate-events-with-start-and-end-date/162371)._
