# Sampler Aggregation

**URL:** <https://discuss.elastic.co/t/sampler-aggregation/157222>\
**Category:** Kibana\
**Created:** [November 18, 2018, 12:50pm UTC](https://discuss.elastic.co/t/sampler-aggregation/157222 "2018-11-18T12:50:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vakarami](https://avatars.discourse-cdn.com/v4/letter/v/47e85d/32.png) [@vakarami](https://discuss.elastic.co/u/vakarami)\
**Post date:** [November 18, 2018, 12:50pm UTC](https://discuss.elastic.co/t/sampler-aggregation/157222/1 "2018-11-18T12:50:15Z")

</div>

Hi  
I Have many visualizations with term aggregation, But I have lots of data so I want to run sampler aggregation before actual term agg.  
I couldn't find any options for my use case in Kibana, So I want to ask is there any options for sampler agg at all? And if not how can I manipulate term agg to wrap in sampler agg, by using plugins or changing the source code?

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [November 19, 2018, 5:05pm UTC](https://discuss.elastic.co/t/sampler-aggregation/157222/2 "2018-11-19T17:05:14Z")

</div>

@vakarami

this isn't support by Kibana. I'd suggest to submit a feature request: [https://github.com/elastic/kibana/issues/new](https://github.com/elastic/kibana/issues/new)

---

<div class="post-metadata">

**Author:** ![vakarami](https://avatars.discourse-cdn.com/v4/letter/v/47e85d/32.png) [@vakarami](https://discuss.elastic.co/u/vakarami)\
**Post date:** [November 20, 2018, 11:15am UTC](https://discuss.elastic.co/t/sampler-aggregation/157222/3 "2018-11-20T11:15:05Z")

</div>

It doesn't seem a difficult implementation, but I couldn't find the proper file to change it. Do you know where term agg requests are built and sent to the elastic? I want to wrap all terms agg requests into a sampler agg

---

<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:** [December 18, 2018, 11:15am UTC](https://discuss.elastic.co/t/sampler-aggregation/157222/4 "2018-12-18T11:15:13Z")

</div>

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