# Filter document with not null value in Kibana Discover. Should I use "exist", but it still return me docs with empty field

**URL:** <https://discuss.elastic.co/t/filter-document-with-not-null-value-in-kibana-discover-should-i-use-exist-but-it-still-return-me-docs-with-empty-field/265103>\
**Category:** Kibana\
**Created:** [February 22, 2021, 5:50pm UTC](https://discuss.elastic.co/t/filter-document-with-not-null-value-in-kibana-discover-should-i-use-exist-but-it-still-return-me-docs-with-empty-field/265103 "2021-02-22T17:50:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![qub123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qub123/32/55327_2.png) [@qub123](https://discuss.elastic.co/u/qub123)\
**Post date:** [February 22, 2021, 5:50pm UTC](https://discuss.elastic.co/t/filter-document-with-not-null-value-in-kibana-discover-should-i-use-exist-but-it-still-return-me-docs-with-empty-field/265103/1 "2021-02-22T17:50:01Z")

</div>

Hi,

I am trying to filter out field without "null/empty" value in Kibana, but when I try to use operator exist. THen it still show me docs without any value. Just wondering is there a way to filter only see documents without null value?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/f/7f58aa78086aca5389c54e70bbabdb7b8344aa7b.png)

---

<div class="post-metadata">

**Author:** ![diego\_garea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diego_garea/32/83895_2.png) [@diego\_garea](https://discuss.elastic.co/u/diego_garea)\
**Post date:** [February 22, 2021, 6:17pm UTC](https://discuss.elastic.co/t/filter-document-with-not-null-value-in-kibana-discover-should-i-use-exist-but-it-still-return-me-docs-with-empty-field/265103/2 "2021-02-22T18:17:03Z")

</div>

Hi kenneth,

Try to use `file_path: *`  
Using this we are asking for some content in that field.

---

<div class="post-metadata">

**Author:** ![qub123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qub123/32/55327_2.png) [@qub123](https://discuss.elastic.co/u/qub123)\
**Post date:** [February 23, 2021, 9:04am UTC](https://discuss.elastic.co/t/filter-document-with-not-null-value-in-kibana-discover-should-i-use-exist-but-it-still-return-me-docs-with-empty-field/265103/3 "2021-02-23T09:04:15Z")

</div>

Hi, I tried the file\_path:\*, it still show me the document with empty value.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/8/285e252766f2d277b6e37302c864239c6cd6e541.png)

And then I also try it in "add filter" with operator "is" , value "\*", and it is not showing me any documents at all

![image](https://us1.discourse-cdn.com/elastic/original/3X/d/e/de77ad1470e8cd8e9010318f9f7e940be05d4a92.png)

---

<div class="post-metadata">

**Author:** ![diego\_garea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diego_garea/32/83895_2.png) [@diego\_garea](https://discuss.elastic.co/u/diego_garea)\
**Post date:** [February 23, 2021, 9:47am UTC](https://discuss.elastic.co/t/filter-document-with-not-null-value-in-kibana-discover-should-i-use-exist-but-it-still-return-me-docs-with-empty-field/265103/4 "2021-02-23T09:47:22Z")

</div>

You can specify the exact query that you want to apply, if you click on `Edit as Query DSL`.

 ![Captura de pantalla 2021-02-23 a las 10.45.28](https://us1.discourse-cdn.com/elastic/original/3X/1/d/1dab18e6a90dd1eb8d98481483464057fc0eff56.png)

---

<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:** [March 23, 2021, 9:47am UTC](https://discuss.elastic.co/t/filter-document-with-not-null-value-in-kibana-discover-should-i-use-exist-but-it-still-return-me-docs-with-empty-field/265103/5 "2021-03-23T09:47:31Z")

</div>

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