# How to double count events?

**URL:** https://discuss.elastic.co/t/how-to-double-count-events/43125
**Category:** Elasticsearch
**Created:** [March 1, 2016, 2:55pm UTC](https://discuss.elastic.co/t/how-to-double-count-events/43125 "2016-03-01T14:55:33Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [March 2, 2016, 6:18am UTC](https://discuss.elastic.co/t/how-to-double-count-events/43125/4 "2016-03-02T06:18:19Z")

</div>

Here is [a link](https://discuss.elastic.co/t/display-concurrency-in-data-on-kibana/26006/2) to a thread that discussed how to do something similar in Kibana using a scripted metrics aggregation. The aggregation example, which is based in start date and duration rather than start and end date, can be [found here](https://gist.github.com/jpountz/cebb8452648c36099cee).

---

_[View the full topic](https://discuss.elastic.co/t/how-to-double-count-events/43125)._
