# Can't get IP as index pattern

**URL:** <https://discuss.elastic.co/t/cant-get-ip-as-index-pattern/60223>\
**Category:** Kibana\
**Created:** [September 10, 2016, 4:09pm UTC](https://discuss.elastic.co/t/cant-get-ip-as-index-pattern/60223 "2016-09-10T16:09:01Z")\
**Posts on this page:** 10\
**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:** [September 10, 2016, 4:09pm UTC](https://discuss.elastic.co/t/cant-get-ip-as-index-pattern/60223/1 "2016-09-10T16:09:01Z")

</div>

This is using straight ntopng to elasticsearch:  
`No Compatible Fields: The "ntopng-*" index pattern does not contain any of the following field types: ip`

yet the field `IPV4_SRC_ADDR` is clearly an IP address. Why are my options only URL, String, and Truncated String? Thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 11, 2016, 8:03am UTC](https://discuss.elastic.co/t/cant-get-ip-as-index-pattern/60223/2 "2016-09-11T08:03:27Z")

</div>

> [@DigiAngel](#):
>
> yet the field IPV4\_SRC\_ADDR is clearly an IP address

Showing your mappings would be useful 🙂

---

<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:** [September 11, 2016, 12:19pm UTC](https://discuss.elastic.co/t/cant-get-ip-as-index-pattern/60223/3 "2016-09-11T12:19:44Z")

</div>

You mean this?  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/2/274575be42e28f2a3a43a9a12634e40833546d9d.png)

Or....somewhere different 😃

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 11, 2016, 9:28pm UTC](https://discuss.elastic.co/t/cant-get-ip-as-index-pattern/60223/4 "2016-09-11T21:28:09Z")

</div>

Well that shows it as a string, not an IP.  
What does `ntopng-*/_mapping` show?

---

<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:** [September 11, 2016, 11:02pm UTC](https://discuss.elastic.co/t/cant-get-ip-as-index-pattern/60223/5 "2016-09-11T23:02:23Z")

</div>

Ok...here's what I got:

```
           "IPV4_SRC_ADDR":{  
              "type":"string",
              "norms":{  
                 "enabled":false
              },
              "fields":{  
                 "raw":{  
                    "type":"string",
                    "index":"not_analyzed",
                    "ignore_above":256
                 }
              }
           },
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 12, 2016, 1:38am UTC](https://discuss.elastic.co/t/cant-get-ip-as-index-pattern/60223/6 "2016-09-12T01:38:35Z")

</div>

Ok so it's not mapped, which you will need to fix and then reindex older data for.

---

<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:** [September 12, 2016, 1:53am UTC](https://discuss.elastic.co/t/cant-get-ip-as-index-pattern/60223/7 "2016-09-12T01:53:42Z")

</div>

Awesome.......so how do I fix it 😃

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 12, 2016, 1:56am UTC](https://discuss.elastic.co/t/cant-get-ip-as-index-pattern/60223/8 "2016-09-12T01:56:42Z")

</div>

Update your `ntopng-*` template to map the field to the IP field type, assuming you have one.

---

<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:** [September 12, 2016, 12:22pm UTC](https://discuss.elastic.co/t/cant-get-ip-as-index-pattern/60223/9 "2016-09-12T12:22:12Z")

</div>

Ok thanks Mark...looks like I have more reading to do as it doesn't appear you can update a map field within Kibana ☹

---

<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, 1:39pm UTC](https://discuss.elastic.co/t/cant-get-ip-as-index-pattern/60223/10 "2017-07-06T13:39:06Z")

</div>


