# How do I get histogram interval used in a custom plugin

**URL:** <https://discuss.elastic.co/t/how-do-i-get-histogram-interval-used-in-a-custom-plugin/285509>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [September 29, 2021, 6:55pm UTC](https://discuss.elastic.co/t/how-do-i-get-histogram-interval-used-in-a-custom-plugin/285509 "2021-09-29T18:55:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Addorex](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@Addorex](https://discuss.elastic.co/u/Addorex)\
**Post date:** [September 29, 2021, 6:55pm UTC](https://discuss.elastic.co/t/how-do-i-get-histogram-interval-used-in-a-custom-plugin/285509/1 "2021-09-29T18:55:50Z")

</div>

I am writing a custom plugin. How do I get the interval that was used for histogram aggregations. When auto scaling is used how do I retrieve the interval. I need the interval for filtering. I am developing on 7.10.2. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [October 25, 2021, 7:34pm UTC](https://discuss.elastic.co/t/how-do-i-get-histogram-interval-used-in-a-custom-plugin/285509/2 "2021-10-25T19:34:26Z")

</div>

> [@Addorex](#):
>
> How do I get the interval that was used for histogram aggregations.

Hello - can you please explain a bit here? what is your plugin intended to do? You can pick an interval in Kibana UI and query the data in Elasticsearch. are you looking for how Kibana app is corresponding with elasticsearch?

Thanks,  
Bhavya

---

<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:** [November 22, 2021, 7:34pm UTC](https://discuss.elastic.co/t/how-do-i-get-histogram-interval-used-in-a-custom-plugin/285509/3 "2021-11-22T19:34:59Z")

</div>

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