mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
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:
parent
182639a64a
commit
ecba50c280
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ def elasticsearch_client(options = { :url => "http://elastic:#{elastic_password}
|
||||||
end
|
end
|
||||||
|
|
||||||
def push_elasticsearch_config(pipeline_id, config)
|
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
|
end
|
||||||
|
|
||||||
def cleanup_elasticsearch(index = MONITORING_INDEXES)
|
def cleanup_elasticsearch(index = MONITORING_INDEXES)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue