# Upgrading Logstash from 6.0.0 to 6.7.2 second type being passed

**URL:** <https://discuss.elastic.co/t/upgrading-logstash-from-6-0-0-to-6-7-2-second-type-being-passed/180677>\
**Category:** Logstash\
**Created:** [May 11, 2019, 11:09pm UTC](https://discuss.elastic.co/t/upgrading-logstash-from-6-0-0-to-6-7-2-second-type-being-passed/180677 "2019-05-11T23:09:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cowensel](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cowensel](https://discuss.elastic.co/u/cowensel)\
**Post date:** [May 11, 2019, 11:09pm UTC](https://discuss.elastic.co/t/upgrading-logstash-from-6-0-0-to-6-7-2-second-type-being-passed/180677/1 "2019-05-11T23:09:50Z")

</div>

I have upgraded to 6.7.2 from 6.7.2 of logstash where I am now receiving the following error

`Rejecting mapping update to [logstash-2019.05.11] as the final mapping would have more than 1 type: [log4net, doc]"`  
the config has not changed. Does anyone know why this as occurred and how do I stop the second type being sent through.

I have rolled back to 6.0.0 for the time being.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 12, 2019, 4:01pm UTC](https://discuss.elastic.co/t/upgrading-logstash-from-6-0-0-to-6-7-2-second-type-being-passed/180677/2 "2019-05-12T16:01:43Z")

</div>

You could start by reading [this](https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html) which covers the why, the when, and what your options are. The release notes say there were related changes to the elasticsearch plugin in [6.1.0](https://www.elastic.co/guide/en/logstash/6.1/logstash-6-1-0.html).

---

<div class="post-metadata">

**Author:** ![cowensel](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cowensel](https://discuss.elastic.co/u/cowensel)\
**Post date:** [May 13, 2019, 6:35am UTC](https://discuss.elastic.co/t/upgrading-logstash-from-6-0-0-to-6-7-2-second-type-being-passed/180677/3 "2019-05-13T06:35:33Z")

</div>

Hi Badger,

I followed the link you sent and I tried to set the index to be typeless by setting include\_type\_name to false.

I am still getting the same message. In our events we do pass a field called type. Any other suggestions?

---

<div class="post-metadata">

**Author:** ![cowensel](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cowensel](https://discuss.elastic.co/u/cowensel)\
**Post date:** [May 14, 2019, 6:52am UTC](https://discuss.elastic.co/t/upgrading-logstash-from-6-0-0-to-6-7-2-second-type-being-passed/180677/4 "2019-05-14T06:52:25Z")

</div>

I have tried using a script to change the value of type. I have even tried dropping the type field that is passed from the event and adding a new field for type but I still get the 2 type error.

has anyone got any more suggestions?

---

<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 11, 2019, 6:52am UTC](https://discuss.elastic.co/t/upgrading-logstash-from-6-0-0-to-6-7-2-second-type-being-passed/180677/5 "2019-06-11T06:52:36Z")

</div>

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