# How to get the list of days where no document has been indexed?

**URL:** <https://discuss.elastic.co/t/how-to-get-the-list-of-days-where-no-document-has-been-indexed/145682>\
**Category:** Kibana\
**Created:** [August 23, 2018, 8:48am UTC](https://discuss.elastic.co/t/how-to-get-the-list-of-days-where-no-document-has-been-indexed/145682 "2018-08-23T08:48:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon24174512](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@anon24174512](https://discuss.elastic.co/u/anon24174512)\
**Post date:** [August 23, 2018, 8:48am UTC](https://discuss.elastic.co/t/how-to-get-the-list-of-days-where-no-document-has-been-indexed/145682/1 "2018-08-23T08:48:36Z")

</div>

Hello,

I am looking to extract the days where no documents has been indexed. I am using Data Table to show the number of documents by day. However it does not exclude days where no document has been indexed (count=0). If I could include them, by sorting by count I could get the day list where there is no document.

How could I do that ?

Thanks.

---

<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:** [August 24, 2018, 9:58am UTC](https://discuss.elastic.co/t/how-to-get-the-list-of-days-where-no-document-has-been-indexed/145682/2 "2018-08-24T09:58:02Z")

</div>

Hello,  
This is how you do it:  
In the Date Histogram aggregation of the table, expand the Advanced JSON input (near the bottom of the box) and add: `{"min_doc_count": 0}`  
This will allow you to see the empty buckets as well.

---

<div class="post-metadata">

**Author:** ![anon24174512](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@anon24174512](https://discuss.elastic.co/u/anon24174512)\
**Post date:** [August 24, 2018, 11:08am UTC](https://discuss.elastic.co/t/how-to-get-the-list-of-days-where-no-document-has-been-indexed/145682/3 "2018-08-24T11:08:32Z")

</div>

Thanks a lot ! I used the `min_doc_count` but in the Advanced JSON of the metric...

---

<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:** [September 21, 2018, 11:17am UTC](https://discuss.elastic.co/t/how-to-get-the-list-of-days-where-no-document-has-been-indexed/145682/4 "2018-09-21T11:17:50Z")

</div>

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