Skip to content

Commit

Permalink
Clarify behavior of copy fields processor (#34798)
Browse files Browse the repository at this point in the history
  • Loading branch information
dedemorton committed Apr 3, 2023
1 parent 91906c9 commit 25acf60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libbeat/processors/actions/docs/copy_fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
<titleabbrev>copy_fields</titleabbrev>
++++

The `copy_fields` processor copies a field to another one.
The `copy_fields` processor takes the value of a field and copies it to a new
field.

You cannot use this processor to replace an existing field. If the target
field already exists, you must <<drop-fields,drop>> or <<rename-fields,rename>>
the field before using `copy_fields`.

`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.
`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`,
Expand Down

0 comments on commit 25acf60

Please sign in to comment.