# Elasticsearch stops indexing logs after upgrading from 5.2.4 to 6.x

**URL:** https://discuss.elastic.co/t/elasticsearch-stops-indexing-logs-after-upgrading-from-5-2-4-to-6-x/131089
**Category:** Elasticsearch
**Created:** [May 9, 2018, 3:01am UTC](https://discuss.elastic.co/t/elasticsearch-stops-indexing-logs-after-upgrading-from-5-2-4-to-6-x/131089 "2018-05-09T03:01:29Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![shankarps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shankarps/32/78663_2.png) [@shankarps](https://discuss.elastic.co/u/shankarps)
#### Post date: [May 9, 2018, 3:01am UTC](https://discuss.elastic.co/t/elasticsearch-stops-indexing-logs-after-upgrading-from-5-2-4-to-6-x/131089/1 "2018-05-09T03:01:29Z")

</div>

We upgraded our ELK stack from 5.2.4 to 6. We had installed X-Pack and rebuilt the indices before the upgrade.

After restarting the new log entries after upgrade are not showing up in Kibana. We see several entries like the following in the Logstash log.

`

> [2018-05-08T19:43:00,259][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>nil, :\_index=\>"logstash-2018.05.09", :\_type=\>"doc", :\_routing=\>nil}, #LogStash::Event:0x3c845dba], :response=\>{"index"=\>{"\_index"=\>"logstash-2018.05.09", "\_type"=\>"doc", "\_id"=\>nil, "status"=\>400, "error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"Failed to parse mapping [_default_]: No field type matched on [float], possible values are [object, string, long, double, boolean, date, binary]", "caused\_by"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"No field type matched on [float], possible values are [object, string, long, double, boolean, date, binary]"}}}}}

`

How can this issue be resolved? I am not sure which field maps to float in the index. Please help.

---

<div class="post-metadata">

### Author: ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)
#### Post date: [May 9, 2018, 6:57am UTC](https://discuss.elastic.co/t/elasticsearch-stops-indexing-logs-after-upgrading-from-5-2-4-to-6-x/131089/2 "2018-05-09T06:57:06Z")

</div>

> [@shankarps](#):
>
> No field type matched on [float], possible values are [object, string, long, double, boolean, date, binary]"

field type change?

---

<div class="post-metadata">

### Author: ![shankarps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shankarps/32/78663_2.png) [@shankarps](https://discuss.elastic.co/u/shankarps)
#### Post date: [May 9, 2018, 6:25pm UTC](https://discuss.elastic.co/t/elasticsearch-stops-indexing-logs-after-upgrading-from-5-2-4-to-6-x/131089/3 "2018-05-09T18:25:13Z")

</div>

Yes. Thanks. I have changed the field types in the template from float to double and created a new index. But the new index is not taking effect. Logstash is still trying to send data to the old index and reporting the same error. What can I do now?

---

<div class="post-metadata">

### Author: ![shankarps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shankarps/32/78663_2.png) [@shankarps](https://discuss.elastic.co/u/shankarps)
#### Post date: [May 9, 2018, 9:44pm UTC](https://discuss.elastic.co/t/elasticsearch-stops-indexing-logs-after-upgrading-from-5-2-4-to-6-x/131089/4 "2018-05-09T21:44:25Z")

</div>

I have worked around this problem by copying the index into a backup using "/\_reindex", deleting the index and creating a new index with each field mapping changed to be compatible with the 6 version.

---

<div class="post-metadata">

### Author: ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)
#### Post date: [May 10, 2018, 12:34am UTC](https://discuss.elastic.co/t/elasticsearch-stops-indexing-logs-after-upgrading-from-5-2-4-to-6-x/131089/5 "2018-05-10T00:34:00Z")

</div>

yes 5 or 6 have some change. need test this.... update....

---

<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 7, 2018, 12:34am UTC](https://discuss.elastic.co/t/elasticsearch-stops-indexing-logs-after-upgrading-from-5-2-4-to-6-x/131089/6 "2018-06-07T00:34:03Z")

</div>

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