[Fleet] Set default settings in component template instead of default template #105603
Labels
Team:Fleet
Team label for Observability Data Collection Fleet team
technical debt
Improvement of the software architecture and operational architecture
v7.16.0
Kibana version: 7.14.0
Describe the bug:
Fleet installs a custom component template and default component templates for settings and mappings if defined in the package. However, the created
index_template
always contains index settings for therefresh_interval
,number_of_shards
, and some others.Settings defined in an index template can not be overwritten by component templates (see component template docs). Neither the default nor the custom component template can set settings such as
number_of_shards
, etc. at the moment.It might be ok to fix some settings directly in the index_template, such as the
lifecycle.name
, but others such asnumber_of_shards
androuting.*
should be adjustable, at least by the package maintainers.An open question is how this should be handled if nothing is specified in the package that would trigger creating a mapping and setting component template to be created.
Steps to reproduce:
number_of_replicas: 5
in the @Custom component templatenumber_of_replicas
is still set to1
although a different value was defined for the package default and for the custom package.Expected behavior:
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
The text was updated successfully, but these errors were encountered: