rename.asciidoc 934 B

12345678910111213141516171819202122232425
  1. [[rename-processor]]
  2. === Rename Processor
  3. Renames an existing field. If the field doesn't exist or the new name is already used, an exception will be thrown.
  4. [[rename-options]]
  5. .Rename Options
  6. [options="header"]
  7. |======
  8. | Name | Required | Default | Description
  9. | `field` | yes | - | The field to be renamed. Supports <<accessing-template-fields,template snippets>>.
  10. | `target_field` | yes | - | The new name of the field. Supports <<accessing-template-fields,template snippets>>.
  11. | `ignore_missing` | no | `false` | If `true` and `field` does not exist, the processor quietly exits without modifying the document
  12. include::common-options.asciidoc[]
  13. |======
  14. [source,js]
  15. --------------------------------------------------
  16. {
  17. "rename": {
  18. "field": "provider",
  19. "target_field": "cloud.provider"
  20. }
  21. }
  22. --------------------------------------------------
  23. // NOTCONSOLE