# Upgrade from 5.6 to 6.0. Problem with mapping

**URL:** <https://discuss.elastic.co/t/upgrade-from-5-6-to-6-0-problem-with-mapping/111328>\
**Category:** Elasticsearch\
**Created:** [December 12, 2017, 12:22pm UTC](https://discuss.elastic.co/t/upgrade-from-5-6-to-6-0-problem-with-mapping/111328 "2017-12-12T12:22:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Letski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_letski/32/671_2.png) [@Paul\_Letski](https://discuss.elastic.co/u/Paul_Letski)\
**Post date:** [December 12, 2017, 12:22pm UTC](https://discuss.elastic.co/t/upgrade-from-5-6-to-6-0-problem-with-mapping/111328/1 "2017-12-12T12:22:33Z")

</div>

Hello!

I'm using Elastic stack to collect logs from application nodes. My setup is: Filebeat -\> Logstash -\> Elasticsearh.  
I have upgraded my cluster from version 5.6 to version 6.0. Cluster consists of 5 nodes: 1 master, 2 hot nodes, 2 cold nodes.  
Elasticsearch has been upgraded on all nodes plus Logstash node. Also I did changes in index template.

Now it looks like this:

```auto
     {
      "index_patterns": "logstash-*",
      "settings": {
        "index.refresh_interval": "5s",
        "index.number_of_shards": 2,
        "index.number_of_replicas": 1,
        "index.routing.allocation.require.box_type": "hot"
      },
      "mappings": {
        "_default_": {
          "_all": {
            "enabled": false,
            "omit_norms": true
          },
          "dynamic_templates": [
            {
              "message_field": {
                "match": "message",
                "match_mapping_type": "string",
                "mapping": {
                  "type": "text",
                  "index": "analyzed",
                  "omit_norms": true
                }
              }
            },
            {
              "strings": {
                "match": "*",
                "match_mapping_type": "string",
                "mapping": {
                  "type": "text",
                  "index": "analyzed",
                  "omit_norms": true,
                  "fields": {
                    "keyword": {
                      "type": "text",
                      "index": "not_analyzed",
                      "ignore_above": 256
                    }
                  }
                }
              }
            }
          ],
          "properties": {
            "@version": {
              "type": "text"
            },
            "geoip": {
              "type": "object",
              "dynamic": true,
              "properties": {
                "location": {
                  "type": "geo_point"
                }
              }
            }
          }
        }
      }
    }

```

Unfortunately, I still can't get new data, only error in Logstash:  
`[WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"logstash-application-2017.12.12-11", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x276c821b>], :response=>{"index"=>{"_index"=>"logstash-application-2017.12.12-11", "_type"=>"doc", "_id"=>nil, "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"Failed to parse mapping [_default_]: No handler for type [string] declared on field [@version]", "caused_by"=>{"type"=>"mapper_parsing_exception", "reason"=>"No handler for type [string] declared on field [@version]"}}}}}`

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [December 12, 2017, 5:22pm UTC](https://discuss.elastic.co/t/upgrade-from-5-6-to-6-0-problem-with-mapping/111328/2 "2017-12-12T17:22:20Z")

</div>

Are you sure that this is the template that gets used? Do you have other active templates in your cluster?

---

<div class="post-metadata">

**Author:** ![tatdat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tatdat/32/113160_2.png) [@tatdat](https://discuss.elastic.co/u/tatdat)\
**Post date:** [December 13, 2017, 3:47am UTC](https://discuss.elastic.co/t/upgrade-from-5-6-to-6-0-problem-with-mapping/111328/3 "2017-12-13T03:47:01Z")

</div>

Same with me, in ES6, i got many problem with index template 😢

---

<div class="post-metadata">

**Author:** ![Paul\_Letski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_letski/32/671_2.png) [@Paul\_Letski](https://discuss.elastic.co/u/Paul_Letski)\
**Post date:** [December 13, 2017, 7:19am UTC](https://discuss.elastic.co/t/upgrade-from-5-6-to-6-0-problem-with-mapping/111328/4 "2017-12-13T07:19:31Z")

</div>

Thank you!  
I didn't delete old one. So stupid mistake 🙂

---

<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:** [January 10, 2018, 8:24am UTC](https://discuss.elastic.co/t/upgrade-from-5-6-to-6-0-problem-with-mapping/111328/6 "2018-01-10T08:24:08Z")

</div>

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