Ingest attachment doesnt support pattern for selecting field in case multiple attachment fields

Use case:
If there are multiple fields in json which has to be mapped as attachment. And those keys are dynamic in nature or follow some convention, then those can not be used in ingest attachment plugin.

For e.g. if I want to process attachment for fields starting with Attachment_*.
Today ingest attachment plugin doesn't support this feature.

In older version, this is supported using mix of dynamic template + mapper attachment plugin.

Not sure there is an easy way to do that.
You should probably add a field within you document which is an array of the fields that need to be parsed then call https://www.elastic.co/guide/en/elasticsearch/reference/current/foreach-processor.html mat be?

But why do you have dynamic fields like this in the first place?

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