Change internal document type to push "_doc" instead of "doc"

This commit fixes x-pack integration tests that were broken by https://github.com/elastic/elasticsearch/pull/39888 removing the "doc"
 type, and using `_doc` in templates.

Fixes #10533
This commit is contained in:
Rob Bavey 2019-03-11 14:09:51 -04:00
parent 182639a64a
commit ecba50c280

View file

@ -95,7 +95,7 @@ def elasticsearch_client(options = { :url => "http://elastic:#{elastic_password}
end
def push_elasticsearch_config(pipeline_id, config)
elasticsearch_client.index :index => '.logstash', :type => "doc", id: pipeline_id, :body => { :pipeline => config }
elasticsearch_client.index :index => '.logstash', :type => "_doc", id: pipeline_id, :body => { :pipeline => config }
end
def cleanup_elasticsearch(index = MONITORING_INDEXES)