# Default value of the type field

**URL:** <https://discuss.elastic.co/t/default-value-of-the-type-field/119280>\
**Category:** Logstash\
**Created:** [February 9, 2018, 5:23pm UTC](https://discuss.elastic.co/t/default-value-of-the-type-field/119280 "2018-02-09T17:23:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![quentin.legraverend](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/quentin.legraverend/32/66373_2.png) [@quentin.legraverend](https://discuss.elastic.co/u/quentin.legraverend)\
**Post date:** [February 13, 2018, 2:01pm UTC](https://discuss.elastic.co/t/default-value-of-the-type-field/119280/2 "2018-02-13T14:01:14Z")

</div>

Hi snuffkin,

I was about to do the same post when I saw your's. So, same issue here. Why is the default value of "doc" used in logstash-output-elasticsearch ? (source: [https://www.elastic.co/guide/en/logstash/6.2/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-document\_type](https://www.elastic.co/guide/en/logstash/6.2/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-document_type)).

Moreover, that's been a while I removed all the document\_type fields in my logstash configuration files but I still have this warning in my logfiles:

`[2018-02-13T13:32:45,781][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. blablablabla.....}`

I use a 6.2.0 stack and the pipeline management feature of Kibana. I've absolutely no configuration in /etc/logstash and all the configurations stored in the pipeline management (in Elasticsearch) are "document\_type"-free in Elasticsearch output.

Could we have any answer from the core-devs of Logstash ?

Have a nice day,  
Kuaaaly

---

_[View the full topic](https://discuss.elastic.co/t/default-value-of-the-type-field/119280)._
