# Display concurrency in data on Kibana

**URL:** <https://discuss.elastic.co/t/display-concurrency-in-data-on-kibana/26006>\
**Category:** Kibana\
**Created:** [July 21, 2015, 4:50pm UTC](https://discuss.elastic.co/t/display-concurrency-in-data-on-kibana/26006 "2015-07-21T16:50:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [July 24, 2015, 3:44pm UTC](https://discuss.elastic.co/t/display-concurrency-in-data-on-kibana/26006/3 "2015-07-24T15:44:52Z")

</div>

You can actually do this if you query Elasticsearch directly by using a script on a `date_histogram` aggregation which adds the call document to all the buckets from the `start_time` to `start_time + duration`. The following gist contains a Sense recreation that details what I mean: [https://gist.github.com/jpountz/cebb8452648c36099cee](https://gist.github.com/jpountz/cebb8452648c36099cee)

As for doing this in Kibana, I know it's possible to run scripts in Kibana for some actions but I'm not sure if this would be possible, maybe someone more familiar with Kibana could comment? At the very least you would probably need to have a file script for this as Kibana won't let you run inline groovy scripts.

Hope that helps

---

_[View the full topic](https://discuss.elastic.co/t/display-concurrency-in-data-on-kibana/26006)._
