The rename
processor specifies a list of fields to rename. This processor
cannot be used to overwrite fields. To overwrite fields, either first rename the
target field, or use the drop_fields
processor to drop the field, and then
rename the field.
Tip
|
You can rename fields to resolve field name conflicts. For example, if an
event has two fields, c and c.b (where b is a subfield of c ), assigning
scalar values results in an {es} error at ingest time. The assignment
{"c": 1,"c.b": 2} would result in an error because c is an object and cannot
be assigned a scalar value. To prevent this conflict, rename c to c.value
before assigning values.
|
- rename:
fields:
- from: "a.g"
to: "e.d"
ignore_missing: false
fail_on_error: true
processors.asciidoc :works-with-fields!:
Name | Required | Default | Description |
---|---|---|---|
|
Yes |
Contains:
|
|
|
No |
|
Whether to ignore missing keys. If |
|
No |
|
Whether to fail renaming if an error occurs. If |
See [conditions] for a list of supported conditions.
You can specify multiple rename
processors under the processors
section.