# \[Logstash Monitoring\] Warning about document types

**URL:** <https://discuss.elastic.co/t/logstash-monitoring-warning-about-document-types/186228>\
**Category:** Logstash\
**Created:** [June 18, 2019, 10:59am UTC](https://discuss.elastic.co/t/logstash-monitoring-warning-about-document-types/186228 "2019-06-18T10:59:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhilash\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhilash_b/32/40270_2.png) [@Abhilash\_B](https://discuss.elastic.co/u/Abhilash_B)\
**Post date:** [June 18, 2019, 10:59am UTC](https://discuss.elastic.co/t/logstash-monitoring-warning-about-document-types/186228/1 "2019-06-18T10:59:42Z")

</div>

Hi all,  
I am getting the following warning when I restarted logstash after upgrading from 6.6.1 to 6.7.2

Logstash version: 6.7.2  
Elasticsearch version: 7.0.0

```
[2019-06-18T10:47:50,525][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 bulk_path=>"/_xpack/monitoring/_bulk?system_id=logstash&system_api_version=6&interval=1s", password=><password>, hosts=>[https://980fbc29d9d74e13b113d9b6a890536c.us-east-1.aws.found.io:9243], sniffing=>false, manage_template=>false, id=>"93cf9be33908b93fb27247fd6e80613d369c22dc400f9fd9826349fb65b1047e", user=>"abhilash", document_type=>"%{[@metadata][document_type]}", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_433c5246-4520-4824-83b2-7cc9ba74a2ea", enable_metric=>true, charset=>"UTF-8">, workers=>1, template_name=>"logstash", template_overwrite=>false, doc_as_upsert=>false, script_type=>"inline", script_lang=>"painless", script_var_name=>"event", scripted_upsert=>false, retry_initial_interval=>2, retry_max_interval=>64, retry_on_conflict=>1, ilm_enabled=>false, ilm_rollover_alias=>"logstash", ilm_pattern=>"{now/d}-000001", ilm_policy=>"logstash-policy", action=>"index", ssl_certificate_verification=>true, sniffing_delay=>5, timeout=>60, pool_max=>1000, pool_max_per_route=>100, resurrect_delay=>5, validate_after_inactivity=>10000, http_compression=>false>}

```

As given in the warning, I have no where set `document_type=>"%{[@metadata][document_type]}` anywhere in my configs. Any help here?

---

<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:** [July 16, 2019, 10:59am UTC](https://discuss.elastic.co/t/logstash-monitoring-warning-about-document-types/186228/2 "2019-07-16T10:59:45Z")

</div>

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