# Aggregation + histogram in kibana?

**URL:** <https://discuss.elastic.co/t/aggregation-histogram-in-kibana/86237>\
**Category:** Kibana\
**Created:** [May 18, 2017, 10:30am UTC](https://discuss.elastic.co/t/aggregation-histogram-in-kibana/86237 "2017-05-18T10:30:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LmYjQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lmyjq/32/97480_2.png) [@LmYjQ](https://discuss.elastic.co/u/LmYjQ)\
**Post date:** [May 18, 2017, 10:30am UTC](https://discuss.elastic.co/t/aggregation-histogram-in-kibana/86237/1 "2017-05-18T10:30:59Z")

</div>

Can I make a histogram visualization on the result of aggregation in kibana?

I have some records like:  
id| act | user\_id  
1 |play | 12345  
2 | create | 12345  
3 | play | 12345  
4| create|23456  
........  
I want to have a histogram of the time of each user play.  
so I have to do 3- steps  
(1) filter: records by act=play  
(2)aggregate: count how many "play"s of each user  
(3)histogram: make histogram of "count"

Thank you in advance:blush:

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [May 19, 2017, 8:50pm UTC](https://discuss.elastic.co/t/aggregation-histogram-in-kibana/86237/2 "2017-05-19T20:50:36Z")

</div>

If I understand the question correctly, I don't think there's a way to do this currently. I believe you would need a [histogram pipeline aggregation](https://github.com/elastic/elasticsearch/issues/21097).

---

<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 16, 2017, 8:50pm UTC](https://discuss.elastic.co/t/aggregation-histogram-in-kibana/86237/3 "2017-06-16T20:50:44Z")

</div>

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