Copy fieldsedit

The copy_fields processor copies a field to another one.

List of from and to pairs to copy from and to.
(Optional) If set to true, in case of an error the changes to the event are reverted, and the original event is returned. If set to false, processing continues also if an error happens. Default is true.
(Optional) Whether to ignore events that lack the source field. The default is false, which will fail processing of an event if a field is missing.

For example, this configuration:

- copy_fields:
  - from: message
    to: event.original
  fail_on_error: false
  ignore_missing: true

Copies the original message field to event.original:

  "message": "my-interesting-message",
  "event": {
      "original": "my-interesting-message"