# How to query a wildcard ip address?

**URL:** <https://discuss.elastic.co/t/how-to-query-a-wildcard-ip-address/140347>\
**Category:** Kibana\
**Created:** [July 17, 2018, 2:42pm UTC](https://discuss.elastic.co/t/how-to-query-a-wildcard-ip-address/140347 "2018-07-17T14:42:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bossi6of9](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@bossi6of9](https://discuss.elastic.co/u/bossi6of9)\
**Post date:** [July 17, 2018, 2:42pm UTC](https://discuss.elastic.co/t/how-to-query-a-wildcard-ip-address/140347/1 "2018-07-17T14:42:54Z")

</div>

Hi,

I am trying to query kibana to grab any up that starts with 1._._._. i try 1._, but it grabs everything that starts with 1, including 10, 100.... How can I specifically grab just 1.? The field is defined as text.

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 17, 2018, 10:04pm UTC](https://discuss.elastic.co/t/how-to-query-a-wildcard-ip-address/140347/2 "2018-07-17T22:04:59Z")

</div>

Hi there, is it possible to change the data type to IP? This will require you to reindex your data. If you can do that then you can use a range filter like this:

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/0/a05f39efe42ca4aff05de534a0ec636910f67684.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:** [August 14, 2018, 10:10pm UTC](https://discuss.elastic.co/t/how-to-query-a-wildcard-ip-address/140347/3 "2018-08-14T22:10:48Z")

</div>

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