You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/enrich-processor/append-processor.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,12 @@ $$$append-options$$$
25
25
|`on_failure`| no | - | Handle failures for the processor. See [Handling pipeline failures](docs-content://manage-data/ingest/transform-enrich/ingest-pipelines.md#handling-pipeline-failures). |
26
26
|`tag`| no | - | Identifier for the processor. Useful for debugging and metrics. |
27
27
28
+
## Examples [append-processor-examples]
29
+
30
+
### Simple example [append-processor-simple-example]
31
+
32
+
Here is an that adds the string "production" as well as the values of the "app" and "owner" fields to the "tags" field:
33
+
28
34
```js
29
35
{
30
36
"append": {
@@ -34,3 +40,21 @@ $$$append-options$$$
34
40
}
35
41
```
36
42
43
+
### Example using `allow_duplicates` and `ignore_empty_values`
44
+
45
+
```{applies_to}
46
+
stack: ga 9.2
47
+
```
48
+
49
+
By using `allow_duplicates` and `ignore_empty_values`, it is possible to only append the `host.name` to the `related.hosts` if the `host.name` is not empty and if the value not already present in `related.hosts`:
0 commit comments