# Aggregations bucket group

**URL:** <https://discuss.elastic.co/t/aggregations-bucket-group/95132>\
**Category:** Kibana\
**Created:** [July 31, 2017, 7:22am UTC](https://discuss.elastic.co/t/aggregations-bucket-group/95132 "2017-07-31T07:22:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avneet\_Singh](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Avneet\_Singh](https://discuss.elastic.co/u/Avneet_Singh)\
**Post date:** [July 31, 2017, 7:22am UTC](https://discuss.elastic.co/t/aggregations-bucket-group/95132/1 "2017-07-31T07:22:12Z")

</div>

Hello,  
I want to make one bucket of bridge ids from various documents.please tell me how can i do it. some are shown below:  
{  
"\_index": "cdrs",  
"\_type": "logs",  
"\_id": "14",  
"\_score": 1,  
"\_source": {  
"billing\_seconds": 18,  
"bridge\_id": "1bc4c557-e95d-1235-fca6-a3ca63d6363f",  
"callee\_id\_name": "",  
"callee\_id\_number": "",  
"caller\_id\_name": 919915346686,  
"caller\_id\_number": 919915346686,  
"dialed\_number": 911723810009,  
"direction": "inbound",  
"duration\_seconds": 20,  
"hangup\_cause": "NORMAL\_CLEARING"  
}  
},  
{  
"\_index": "cdrs",  
"\_type": "logs",  
"\_id": "5",  
"\_score": 1,  
"\_source": {  
"billing\_seconds": 0,  
"bridge\_id": "114fac12-e95e-1235-fca6-a3ca63d6363f",  
"callee\_id\_name": 9915319237,  
"callee\_id\_number": 9915319237,  
"caller\_id\_name": 919915346686,  
"caller\_id\_number": 911723810009,  
"dialed\_number": 9915319237,  
"direction": "outbound",  
"duration\_seconds": 19,  
"hangup\_cause": "ORIGINATOR\_CANCEL"  
}  
},  
Thanks

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [July 31, 2017, 12:20pm UTC](https://discuss.elastic.co/t/aggregations-bucket-group/95132/2 "2017-07-31T12:20:27Z")

</div>

Hi @Avneet_Singh,

do you want to create a visualization with the `bridge_id`s as categories on the x-axis? If so, what should be the y-axis metric?

---

<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:** [August 28, 2017, 12:32pm UTC](https://discuss.elastic.co/t/aggregations-bucket-group/95132/3 "2017-08-28T12:32:23Z")

</div>

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