# Logstash 6.1 removal of mapping types

**URL:** <https://discuss.elastic.co/t/logstash-6-1-removal-of-mapping-types/114321>\
**Category:** Logstash\
**Created:** [January 5, 2018, 5:59pm UTC](https://discuss.elastic.co/t/logstash-6-1-removal-of-mapping-types/114321 "2018-01-05T17:59:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ld\_pvl](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@ld\_pvl](https://discuss.elastic.co/u/ld_pvl)\
**Post date:** [January 5, 2018, 5:59pm UTC](https://discuss.elastic.co/t/logstash-6-1-removal-of-mapping-types/114321/1 "2018-01-05T17:59:20Z")

</div>

Hi Elastic Team,

With info from [logstash breaking changes](https://www.elastic.co/guide/en/logstash/current/breaking-changes.html) and [elasticsearch removal of types doc](https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html), does that mean it is now recommended not to use the "type" parameter in input plugins?

Many thanks for your help,

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 7, 2018, 6:23pm UTC](https://discuss.elastic.co/t/logstash-6-1-removal-of-mapping-types/114321/2 "2018-01-07T18:23:20Z")

</div>

No, you can still use the `type` option but depending on the chosen strategy for dealing with the removal of document types you'll have to do different things with the resulting `type` field.

For example, if you choose to still have all documents in the same index you'll have to give them all the same type, but that type doesn't have to be the same as the `type` field created by the `type` option in input plugins. So, override the elasticsearch output's `document_type` option and set it to a fixed value.

If you choose to have one index series per type you can leave the `document_type` option alone but you'll have to update the `index` option to reference the `type` field.

---

<div class="post-metadata">

**Author:** ![ld\_pvl](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@ld\_pvl](https://discuss.elastic.co/u/ld_pvl)\
**Post date:** [January 8, 2018, 10:21am UTC](https://discuss.elastic.co/t/logstash-6-1-removal-of-mapping-types/114321/3 "2018-01-08T10:21:10Z")

</div>

Many thanks Magnus.

---

<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:** [February 5, 2018, 10:21am UTC](https://discuss.elastic.co/t/logstash-6-1-removal-of-mapping-types/114321/4 "2018-02-05T10:21:16Z")

</div>

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