Copy fields
editCopy fields
editThe 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 or
rename the field before using copy_fields
.
Example
editThis configuration:
- copy_fields: 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" } }
Configuration settings
editElastic Agent processors execute before ingest pipelines, which means that your processor configurations cannot refer to fields that are created by ingest pipelines or Logstash. For more limitations, refer to What are some limitations of using processors?
Name | Required | Default | Description |
---|---|---|---|
|
Yes |
List of |
|
|
No |
|
Whether to fail if an error occurs. If |
|
No |
|
Whether to ignore events that lack the source field. If |