# Could not index event to Elasticsearch after upgrade

**URL:** https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-after-upgrade/200593
**Category:** Logstash
**Created:** [September 22, 2019, 2:53pm UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-after-upgrade/200593 "2019-09-22T14:53:41Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![hackdefendr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hackdefendr/32/54683_2.png) [@hackdefendr](https://discuss.elastic.co/u/hackdefendr)
#### Post date: [September 22, 2019, 2:53pm UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-after-upgrade/200593/1 "2019-09-22T14:53:42Z")

</div>

`[2019-09-22T09:37:34,941][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"logstash-2019.09.22", :_type=>"doc", :routing=>nil}, #<LogStash::Event:0x4528d597>], :response=>{"index"=>{"_index"=>"logstash-2019.09.22", "_type"=>"doc", "_id"=>nil, "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"Failed to parse mapping [_default_]: [include_in_all] is not allowed for indices created on or after version 6.0.0 as [_all] is deprecated. As a replacement, you can use an [copy_to] on mapping fields to create your own catch all field.", "caused_by"=>{"type"=>"mapper_parsing_exception", "reason"=>"[include_in_all] is not allowed for indices created on or after version 6.0.0 as [_all] is deprecated. As a replacement, you can use an [copy_to] on mapping fields to create your own catch all field."}}}}}`

I upgraded from 5.6.16 to 6.8.3 and now my Elastic won't index. I've read through several similar / identical topics, but no solution has worked. I do not have a clue about what to try to do to fix this. Please help.

Thank-you!

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [September 22, 2019, 2:57pm UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-after-upgrade/200593/2 "2019-09-22T14:57:48Z")

</div>

It seems to be a problem with an index template that have `include_in_all` set, which is no longer supported. You will need to update your index template to allow indexing to take place.

---

<div class="post-metadata">

### Author: ![hackdefendr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hackdefendr/32/54683_2.png) [@hackdefendr](https://discuss.elastic.co/u/hackdefendr)
#### Post date: [September 22, 2019, 3:00pm UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-after-upgrade/200593/3 "2019-09-22T15:00:27Z")

</div>

Thank-you for replying.

Is there an easy to understand guide for doing this?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [September 22, 2019, 3:04pm UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-after-upgrade/200593/4 "2019-09-22T15:04:51Z")

</div>

Have a look at these:

[https://www.elastic.co/guide/en/elasticsearch/reference/6.8/copy-to.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/copy-to.html)

[https://www.elastic.co/guide/en/elasticsearch/reference/6.8/mapping-all-field.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/mapping-all-field.html)

> **[Space Saving Improvements in Elasticsearch 6.0](https://www.elastic.co/blog/minimize-index-storage-size-elasticsearch-6-0)**
>
> Two upcoming improvements will help minimize Elasticsearch index storage size in version 6.0.

---

<div class="post-metadata">

### Author: ![hackdefendr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hackdefendr/32/54683_2.png) [@hackdefendr](https://discuss.elastic.co/u/hackdefendr)
#### Post date: [September 22, 2019, 3:15pm UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-after-upgrade/200593/5 "2019-09-22T15:15:46Z")

</div>

Thanks for that. I'm having trouble understanding the copy\_to part. I'm afraid I need elasticsearch for dummies 😂 . I found in the Kibana 7.0 Upgrade Assistant a place to reindex, but it errors out due to not having a custom \_all field.

---

<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: [October 20, 2019, 3:15pm UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-after-upgrade/200593/6 "2019-10-20T15:15:57Z")

</div>

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