[Logstash Monitoring] Warning about document types

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?

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