Description
Description
We added the unattended
flag to transforms shipped in integration packages (example: elastic/integrations#8320).
In the past, without the unattended
flag, once the package is installed on a fresh cluster:
- Transform is installed
- Destination index is created on install
.latest
and.all
aliases for the destination index is created (see [ML][Fleet] Update Transform installation mechanism to support upgrade paths kibana#142920 )
Now, with the unattended
flag, on a fresh cluster:
- Transform is installed
- Destination index doesn't seem to be created successfully
After testing on v8.11.1
(so that this fix #101627 would be there), transforms with the unattended
flag don't seem to create the destination index like without the unattended
flag.
It turns out, the destination index is only created when there is exact data that matches the criteria (e.g. fields host.name
, destination.ip
, etc. exist in logs-*
) for the transform to run, compared to before, the destination index can be created regardless. This gives the impression that the package hasn't fully been installed.
What we want to clarify is: Is this expected behavior with the unattended
flag?
If so, can it be implemented so the behavior is the same as before (create destination index regardless of available data) so that it's clearer to users when the transform and associated indices have been created?