# Number of buckets in a timelion query

**URL:** <https://discuss.elastic.co/t/number-of-buckets-in-a-timelion-query/230878>\
**Category:** Kibana\
**Created:** [May 3, 2020, 1:39pm UTC](https://discuss.elastic.co/t/number-of-buckets-in-a-timelion-query/230878 "2020-05-03T13:39:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmd\_hmd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hmd_hmd/32/67589_2.png) [@hmd\_hmd](https://discuss.elastic.co/u/hmd_hmd)\
**Post date:** [May 3, 2020, 1:39pm UTC](https://discuss.elastic.co/t/number-of-buckets-in-a-timelion-query/230878/1 "2020-05-03T13:39:39Z")

</div>

I would like to know how many buckets were there in total when doing a timeline query. For example, if the query range is set for the last 24 hours, and the interval is 1 hour, then there must be 24 buckets. How to get this number programmatically?

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [May 3, 2020, 9:17pm UTC](https://discuss.elastic.co/t/number-of-buckets-in-a-timelion-query/230878/2 "2020-05-03T21:17:21Z")

</div>

You can get it from the network request if you can sniff in between or using Selenium or something to get it from the Inspector tabs.

---

<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:** [May 31, 2020, 9:17pm UTC](https://discuss.elastic.co/t/number-of-buckets-in-a-timelion-query/230878/3 "2020-05-31T21:17:21Z")

</div>

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