# Find hosts that do not have any documents matching a query

**URL:** <https://discuss.elastic.co/t/find-hosts-that-do-not-have-any-documents-matching-a-query/257871>\
**Category:** Kibana\
**Created:** [December 7, 2020, 3:15pm UTC](https://discuss.elastic.co/t/find-hosts-that-do-not-have-any-documents-matching-a-query/257871 "2020-12-07T15:15:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmcclelland](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jmcclelland](https://discuss.elastic.co/u/jmcclelland)\
**Post date:** [December 7, 2020, 3:15pm UTC](https://discuss.elastic.co/t/find-hosts-that-do-not-have-any-documents-matching-a-query/257871/1 "2020-12-07T15:15:11Z")

</div>

Is it possible to create a dashboard that lists all unique hosts that _do not_ have any documents matching a particular query? Thanks for any tips you might have!

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [December 7, 2020, 5:51pm UTC](https://discuss.elastic.co/t/find-hosts-that-do-not-have-any-documents-matching-a-query/257871/2 "2020-12-07T17:51:31Z")

</div>

You can add to your dashboard (and many other Kibana apps) a filter with any custom Elasticsearch DSL Query. You can actually later reverse the query or disable it if you want. Then in the dashboard itself, you can create a lens visualization as a data table with the aggregation you need.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/4/849030d34a3e29254277f57d475ff31ae3e7596a.png)

---

<div class="post-metadata">

**Author:** ![jmcclelland](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jmcclelland](https://discuss.elastic.co/u/jmcclelland)\
**Post date:** [December 8, 2020, 9:42pm UTC](https://discuss.elastic.co/t/find-hosts-that-do-not-have-any-documents-matching-a-query/257871/3 "2020-12-08T21:42:58Z")

</div>

Thank you!

---

<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:** [January 5, 2021, 9:43pm UTC](https://discuss.elastic.co/t/find-hosts-that-do-not-have-any-documents-matching-a-query/257871/4 "2021-01-05T21:43:07Z")

</div>

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