# Logstash X-Pack is using deprecated feature

**URL:** <https://discuss.elastic.co/t/logstash-x-pack-is-using-deprecated-feature/108304>\
**Category:** Logstash\
**Created:** [November 20, 2017, 1:16am UTC](https://discuss.elastic.co/t/logstash-x-pack-is-using-deprecated-feature/108304 "2017-11-20T01:16:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![outcoldman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/outcoldman/32/20061_2.png) [@outcoldman](https://discuss.elastic.co/u/outcoldman)\
**Post date:** [November 20, 2017, 1:16am UTC](https://discuss.elastic.co/t/logstash-x-pack-is-using-deprecated-feature/108304/1 "2017-11-20T01:16:54Z")

</div>

Logstash is reporting

`[2017-11-20T01:04:57,970][WARN][logstash.outputs.elasticsearch] You are using a deprecated config setting "document_type" set in elasticsearch. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. Document types are being deprecated in Elasticsearch 6.0, and removed entirely in 7.0. You should avoid this feature If you have any questions about this, please visit the #logstash channel on freenode irc. {:name=>"document_type", :plugin=><LogStash::Outputs::ElasticSearch hosts=>["http://elasticsearch.default.svc.cluster.local:9200"], bulk_path=>"/_xpack/monitoring/_bulk?system_id=logstash&system_api_version=2&interval=1s", manage_template=>"false", document_type=>"%{[@metadata][document_type]}", sniffing=>"false", id=>"28ab6e7943446eae063d5d342140060a2b7b05794706839d6b2bb915713dd0be">}`

for monitoring pipeline

---

<div class="post-metadata">

**Author:** ![willemdh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/willemdh/32/16922_2.png) [@willemdh](https://discuss.elastic.co/u/willemdh)\
**Post date:** [November 20, 2017, 4:39pm UTC](https://discuss.elastic.co/t/logstash-x-pack-is-using-deprecated-feature/108304/2 "2017-11-20T16:39:43Z")

</div>

Also seeing this warning in some logstash logs. Nowhere in my Logstash output config I'm usingdocument\_type

`[2017-11-20T17:32:16,796][WARN][logstash.outputs.elasticsearch] You are using a deprecated config setting "document_type" set in elasticsearch. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. Document types are being deprecated in Elasticsearch 6.0, and removed entirely in 7.0. You should avoid this feature If you have any questions about this, please visit the #logstash channel on freenode irc. {:name=>"document_type", :plugin=><LogStash::Outputs::ElasticSearch hosts=>["http://localhost:9200"], bulk_path=>"/_xpack/monitoring/_bulk?system_id=logstash&system_api_version=2&interval=1s", manage_template=>"false", document_type=>"%{[@metadata][document_type]}", sniffing=>"false", id=>"68ba900df53aba84cabc07ed017a17947c9c">}`

---

<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:** [December 18, 2017, 4:43pm UTC](https://discuss.elastic.co/t/logstash-x-pack-is-using-deprecated-feature/108304/3 "2017-12-18T16:43:18Z")

</div>

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