# Cant get proper "type" : "ip"

**URL:** https://discuss.elastic.co/t/cant-get-proper-type-ip/44490
**Category:** Elasticsearch
**Created:** [March 15, 2016, 8:50pm UTC](https://discuss.elastic.co/t/cant-get-proper-type-ip/44490 "2016-03-15T20:50:53Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)
#### Post date: [March 16, 2016, 6:40pm UTC](https://discuss.elastic.co/t/cant-get-proper-type-ip/44490/6 "2016-03-16T18:40:13Z")

</div>

The answer is in this thread [GeoIP location has added brackets and not able to visualize](https://discuss.elastic.co/t/geoip-location-has-added-brackets-and-not-able-to-visualize/44259/7).

Basically, you are using the wrong config for geoip. There is no need to use mutate plugin with geoip plugin. When you use geoip plugin, it will output a bunch of fields, and `location`, one of the fields, has geo\_point format and contains the info needed for Kibana to graph Tile maps. You just need a mapping template for the geoip fields in ES.

Below is what the mapping looks like:

```auto
"geoip": {
          "dynamic": true,
          "type": "object",
          "properties": {
            "city_name": {
              "index": "not_analyzed",
              "type": "string"
            },
            "timezone": {
              "index": "not_analyzed",
              "type": "string"
            },
            "country_code2": {
              "index": "not_analyzed",
              "type": "string"
            },
            "country_name": {
              "index": "not_analyzed",
              "type": "string"
            },
            "continent_code": {
              "index": "not_analyzed",
              "type": "string"
            },
            "location": {
              "type": "geo_point",
              "doc_values": true
            },
            "region_name": {
              "index": "not_analyzed",
              "type": "string"
            },
            "real_region_name": {
              "index": "not_analyzed",
              "type": "string"
            },
            "postal_code": {
              "index": "not_analyzed",
              "type": "string"
            }
          }
        },

```

geoip.location is the field for Tile map in Kibana.

---

_[View the full topic](https://discuss.elastic.co/t/cant-get-proper-type-ip/44490)._
