# Date Histogram Bucket Count?

**URL:** <https://discuss.elastic.co/t/date-histogram-bucket-count/22260>\
**Category:** Elasticsearch\
**Created:** [February 19, 2015, 9:40am UTC](https://discuss.elastic.co/t/date-histogram-bucket-count/22260 "2015-02-19T09:40:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![neil\_varnas](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@neil\_varnas](https://discuss.elastic.co/u/neil_varnas)\
**Post date:** [February 19, 2015, 9:40am UTC](https://discuss.elastic.co/t/date-histogram-bucket-count/22260/1 "2015-02-19T09:40:52Z")

</div>

Is it possible to apply a filter to date histogram buckets ?  
For example return only buckets that are below a certain value. I was  
looking to do it with scripts but dont know how to access buckets in  
script, so if anyone knows anything about that, it would be very very very  
helpful

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/57052d83-57ea-4037-b87d-708eb040d557%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/57052d83-57ea-4037-b87d-708eb040d557%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:31am UTC](https://discuss.elastic.co/t/date-histogram-bucket-count/22260/2 "2017-07-06T00:31:35Z")

</div>


