# Minute Interval aggregation

**URL:** https://discuss.elastic.co/t/minute-interval-aggregation/87218
**Category:** Elasticsearch
**Created:** [May 26, 2017, 8:28am UTC](https://discuss.elastic.co/t/minute-interval-aggregation/87218 "2017-05-26T08:28:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Skolty](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@Skolty](https://discuss.elastic.co/u/Skolty)
#### Post date: [May 26, 2017, 8:28am UTC](https://discuss.elastic.co/t/minute-interval-aggregation/87218/1 "2017-05-26T08:28:36Z")

</div>

Hi Guys !

I have installed ElasticSearch and it works well 🙂

But I have a question concerning aggregates. I have data like this :  
Start Event : 2017-01-01T08:00:00  
End Event : 2017-01-01T09:00:00

I'm trying to make a date histogram with a minute range and count the number of event that are running per minutes.

So when I'm creating my date histogramm the example value that I wrote upside is aggregate in the minute 08:00 but not in 08:01 and it should because the event is still up at this time...

Can anyone help me to find a solution ?

Thanks in advance ! 🙂

---

<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: [May 26, 2017, 9:55am UTC](https://discuss.elastic.co/t/minute-interval-aggregation/87218/2 "2017-05-26T09:55:01Z")

</div>

I believe a similar scenario was discussed in [this thread](https://discuss.elastic.co/t/display-concurrency-in-data-on-kibana/26006), although it had starting time and duration in each event instead of start and end time.

---

<div class="post-metadata">

### Author: ![Skolty](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@Skolty](https://discuss.elastic.co/u/Skolty)
#### Post date: [May 26, 2017, 12:19pm UTC](https://discuss.elastic.co/t/minute-interval-aggregation/87218/3 "2017-05-26T12:19:48Z")

</div>

Thanks ! I did what I wanted by following your link ! 🙂

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 23, 2017, 12:20pm UTC](https://discuss.elastic.co/t/minute-interval-aggregation/87218/4 "2017-06-23T12:20:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
