# Checking if a field exists or not

**URL:** <https://discuss.elastic.co/t/checking-if-a-field-exists-or-not/37792>\
**Category:** Kibana\
**Created:** [December 22, 2015, 8:41pm UTC](https://discuss.elastic.co/t/checking-if-a-field-exists-or-not/37792 "2015-12-22T20:41:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DigiAngel](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DigiAngel](https://discuss.elastic.co/u/DigiAngel)\
**Post date:** [December 22, 2015, 8:41pm UTC](https://discuss.elastic.co/t/checking-if-a-field-exists-or-not/37792/1 "2015-12-22T20:41:22Z")

</div>

So I have a field, dst\_geoip.country\_code2, that I use to find the country code. Entries that actually have a country code have this field, entries that do not do not have this field. In the Discover tab, how do I a basically filter for "show me all entries that have dst\_geoip.country\_code2"? Thank you.

---

<div class="post-metadata">

**Author:** ![DigiAngel](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DigiAngel](https://discuss.elastic.co/u/DigiAngel)\
**Post date:** [December 22, 2015, 8:46pm UTC](https://discuss.elastic.co/t/checking-if-a-field-exists-or-not/37792/2 "2015-12-22T20:46:42Z")

</div>

Meh:

`_exists_:dst_geoip.country_code2`

That's the one 😄

---

<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, 2:06pm UTC](https://discuss.elastic.co/t/checking-if-a-field-exists-or-not/37792/3 "2017-07-06T14:06:09Z")

</div>


