Looking at the pipeline definition we do not seem to take into account whether the field already exists.
This causes issues even when "preserve original data" is unchecked after having been previously checked, or if the field already exists in the target index.
I believe this is the same issue than in #3451 or #5334 and adding if: 'ctx.event?.original == null' is what is required here.
Looking at the pipeline definition we do not seem to take into account whether the field already exists.
This causes issues even when "preserve original data" is unchecked after having been previously checked, or if the field already exists in the target index.
I believe this is the same issue than in #3451 or #5334 and adding
if: 'ctx.event?.original == null'is what is required here.