Add value to a previously indexed field with logstash

Hello!

I have a pipeline that has many inputs ( 19 ) and I use the update on the output using a document_id to avoid duplicates and the elasticsearch filter and update the values.

Is it possible to add the value of a field to the same field already indexed ? I want to add the new value in each update forming an array in elastic.

example:

indexed document:

Field: Value1

after the update

Field: "Value1", "Value2", "Value3".

I have tried several things with the following idea but without success.

script => ' ctx._source.Field.add("%{[Field]}") '

Could someone help me ?

Thanks in advance colleagues!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.