Index template settings disappear

Hello,

When I monitor the status of the datastream configuration, I have sometimes noticed that the configuration I have assigned (3 shards and 1 replica) disappears, and I have to add this index template again.

I don't know why it sometimes disappears from one moment to the next. Has this happened to you? How have you solved it? What do you suggest?

You need to add the settings in the @custom component template, if you edit the index template of an integration to add a different component template, it will be overriden when the integration is updated.

The correct way is to make any custom settings/mappings using the @custom component template.

This usually happens because Fleet-managed templates override custom ones. Any manual template you add can be replaced when the integration updates. The safest way is to create a higher-priority component template (with only the shard/replica settings) and attach it, or define those settings directly in an ILM policy. That way Fleet won’t wipe your changes.