# Cannot add geo\_point type to the mapping template

**URL:** <https://discuss.elastic.co/t/cannot-add-geo-point-type-to-the-mapping-template/84429>\
**Category:** Elasticsearch\
**Created:** [May 3, 2017, 2:42pm UTC](https://discuss.elastic.co/t/cannot-add-geo-point-type-to-the-mapping-template/84429 "2017-05-03T14:42:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vitaly\_il](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vitaly_il/32/130964_2.png) [@Vitaly\_il](https://discuss.elastic.co/u/Vitaly_il)\
**Post date:** [May 3, 2017, 2:42pm UTC](https://discuss.elastic.co/t/cannot-add-geo-point-type-to-the-mapping-template/84429/1 "2017-05-03T14:42:55Z")

</div>

Hi,  
I'm trying to copy my mapping template from my 5.3 ELK cluster to the new 5.3.2 instance.  
Any ideas what this error message is meaning?

TIA, Vitaly

```
 curl -XPUT 'localhost:9200/_template' -H 'Content-Type: application/json' -d @template-new.json
{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "unknown setting [index.logstash.mappings._default_.properties.geoip.properties.location.type] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "unknown setting [index.logstash.mappings._default_.properties.geoip.properties.location.type] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
  },
  "status" : 400
}

```

My template is:

```
   {
  "logstash" : {
    "order" : 0,
    "template" : "logstash*",
    "settings" : {
      "index" : {
        "number_of_shards" : "1",
        "number_of_replicas" : "0"
      }
    },

    "mappings" : {
      "_default_" : {
       "properties" : {
         "geoip" : {
           "properties" : {
              "location" : {
                "type" : "geo_point"
               }
            }
          }
         }
        }
     },

    "aliases" : { }
  }
}
```

---

<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:** [May 3, 2017, 8:38pm UTC](https://discuss.elastic.co/t/cannot-add-geo-point-type-to-the-mapping-template/84429/2 "2017-05-03T20:38:19Z")

</div>

Can you update your post with code formatting on the response, it's hard to read as is.  
Also please show the entire template file.

---

<div class="post-metadata">

**Author:** ![Vitaly\_il](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vitaly_il/32/130964_2.png) [@Vitaly\_il](https://discuss.elastic.co/u/Vitaly_il)\
**Post date:** [May 4, 2017, 6:45am UTC](https://discuss.elastic.co/t/cannot-add-geo-point-type-to-the-mapping-template/84429/3 "2017-05-04T06:45:14Z")

</div>

Mark, thank you - I updated my post.  
Vitaly

---

<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:** [June 1, 2017, 6:46am UTC](https://discuss.elastic.co/t/cannot-add-geo-point-type-to-the-mapping-template/84429/4 "2017-06-01T06:46:23Z")

</div>

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