Skip to content

Commit 67e677f

Browse files
author
Loek van Gool
authored
Add an example of dynamic field names (#27255)
1 parent 3deba0e commit 67e677f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/reference/ingest/ingest-node.asciidoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,20 @@ to set the index that the document will be indexed into:
563563
--------------------------------------------------
564564
// NOTCONSOLE
565565

566+
Dynamic field names are also supported. This example sets the field named after the
567+
value of `service` to the value of the field `code`:
568+
569+
[source,js]
570+
--------------------------------------------------
571+
{
572+
"set": {
573+
"field": "{{service}}"
574+
"value": "{{code}}"
575+
}
576+
}
577+
--------------------------------------------------
578+
// NOTCONSOLE
579+
566580
[[handling-failure-in-pipelines]]
567581
== Handling Failures in Pipelines
568582

0 commit comments

Comments
 (0)