Ingest Pipeline for routing data into 2 different indexes

How can you write into 2 different indexes using a ingest pipeline?

Example. a single doc with fields a , b, c, and d ?

index A will receive fields A & B

index B will receive fields C & D

How can I accomplish this with ingest pipelines?

You can not as far as I know. You need to do that split before you send the documents to Elasticsearch.

Seconding what @Christian_Dahlqvist said. An ingest pipeline can write to only one index. So you can't split a document in two documents within an ingest pipeline.

1 Like

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