Skip to content

Commit 25acf60

Browse files
authored
Clarify behavior of copy fields processor (#34798)
1 parent 91906c9 commit 25acf60

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

libbeat/processors/actions/docs/copy_fields.asciidoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
<titleabbrev>copy_fields</titleabbrev>
66
++++
77

8-
The `copy_fields` processor copies a field to another one.
8+
The `copy_fields` processor takes the value of a field and copies it to a new
9+
field.
10+
11+
You cannot use this processor to replace an existing field. If the target
12+
field already exists, you must <<drop-fields,drop>> or <<rename-fields,rename>>
13+
the field before using `copy_fields`.
914

1015
`fields`:: List of `from` and `to` pairs to copy from and to. It's supported to use `@metadata.` prefix for `from` and `to` and copy values not just in/from/to the event fields but also in/from/to the event metadata.
1116
`fail_on_error`:: (Optional) If set to `true` and an error occurs, the changes are reverted and the original is returned. If set to `false`,

0 commit comments

Comments
 (0)