# Get time elapsed between two different documents

**URL:** <https://discuss.elastic.co/t/get-time-elapsed-between-two-different-documents/55935>\
**Category:** Kibana\
**Created:** [July 19, 2016, 10:42pm UTC](https://discuss.elastic.co/t/get-time-elapsed-between-two-different-documents/55935 "2016-07-19T22:42:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [July 21, 2016, 7:14pm UTC](https://discuss.elastic.co/t/get-time-elapsed-between-two-different-documents/55935/3 "2016-07-21T19:14:54Z")

</div>

You can also look at this;

> [@Display concurrency in data on Kibana](https://discuss.elastic.co/t/display-concurrency-in-data-on-kibana/26006/12):
>
> I also tried this but it doesn't remove the field parameter as promised. With the following json input: { "interval":"minute", "script": "start = doc['recordStart'].value; duration = doc['recordDuration'].value; l = []; for (long i = 0; i \< duration; i += 60000) { l.add(start + i); }; return l;", "field":null, "lang": "groovy" } I get the following request "aggs": { "2": { "date\_histogram": { "field": null, "interval": "minute", "pre\_zone": "+02:00", "pre\_zone\_adjust\_large…

---

_[View the full topic](https://discuss.elastic.co/t/get-time-elapsed-between-two-different-documents/55935)._
