From 67e677f443e90792f03fa900f09eedbeeb755456 Mon Sep 17 00:00:00 2001 From: Loek van Gool Date: Fri, 3 Nov 2017 23:20:58 +0100 Subject: [PATCH] Add an example of dynamic field names (#27255) --- docs/reference/ingest/ingest-node.asciidoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/reference/ingest/ingest-node.asciidoc b/docs/reference/ingest/ingest-node.asciidoc index bdcbf2a9166..74cfabbff47 100644 --- a/docs/reference/ingest/ingest-node.asciidoc +++ b/docs/reference/ingest/ingest-node.asciidoc @@ -563,6 +563,20 @@ to set the index that the document will be indexed into: -------------------------------------------------- // NOTCONSOLE +Dynamic field names are also supported. This example sets the field named after the +value of `service` to the value of the field `code`: + +[source,js] +-------------------------------------------------- +{ + "set": { + "field": "{{service}}" + "value": "{{code}}" + } +} +-------------------------------------------------- +// NOTCONSOLE + [[handling-failure-in-pipelines]] == Handling Failures in Pipelines