# How to use bucket\_selector on the Visualize

**URL:** https://discuss.elastic.co/t/how-to-use-bucket-selector-on-the-visualize/162463
**Category:** Kibana
**Created:** [December 31, 2018, 12:41am UTC](https://discuss.elastic.co/t/how-to-use-bucket-selector-on-the-visualize/162463 "2018-12-31T00:41:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AnKyoung](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@AnKyoung](https://discuss.elastic.co/u/AnKyoung)
#### Post date: [December 31, 2018, 12:41am UTC](https://discuss.elastic.co/t/how-to-use-bucket-selector-on-the-visualize/162463/1 "2018-12-31T00:41:14Z")

</div>

i want to use bucket\_selector on the Metrics

like this :  
"rename\_bucket\_filter": {  
"bucket\_selector": {  
"buckets\_path": {  
"totalRename": "1"  
},  
"script": "params.totalRename \> 5"  
}  
}

when i insert this query like this :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/0/402700a6cbedadcee8bb032af74cf05bf8e6a0bc.png)

it make error

kibana is not support bucket\_selector??

---

<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: [January 28, 2019, 12:41am UTC](https://discuss.elastic.co/t/how-to-use-bucket-selector-on-the-visualize/162463/2 "2019-01-28T00:41:20Z")

</div>

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