Skip to content

Commit b69294c

Browse files
committed
deprecate combining ILM injection with user-provided template
1 parent 234114b commit b69294c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: lib/logstash/outputs/elasticsearch/template_manager.rb

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ def self.install(client, template_endpoint, template_name, template, template_ov
4242
end
4343

4444
def self.add_ilm_settings_to_template(plugin, template)
45+
if plugin.template
46+
plugin.deprecation_logger.deprecated("Injecting Index Lifecycle Management configuration into a provided `template` is deprecated, and support will be removed in a future version. Please add the configuration directly to your template.")
47+
end
4548
# Overwrite any index patterns, and use the rollover alias. Use 'index_patterns' rather than 'template' for pattern
4649
# definition - remove any existing definition of 'template'
4750
template.delete('template') if template_endpoint(plugin) == LEGACY_TEMPLATE_ENDPOINT

0 commit comments

Comments
 (0)