Преглед на файлове

Add an example of dynamic field names (#27255)

Loek van Gool преди 8 години
родител
ревизия
67e677f443
променени са 1 файла, в които са добавени 14 реда и са изтрити 0 реда
  1. 14 0
      docs/reference/ingest/ingest-node.asciidoc

+ 14 - 0
docs/reference/ingest/ingest-node.asciidoc

@@ -563,6 +563,20 @@ to set the index that the document will be indexed into:
 --------------------------------------------------
 --------------------------------------------------
 // NOTCONSOLE
 // 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-failure-in-pipelines]]
 == Handling Failures in Pipelines
 == Handling Failures in Pipelines