rename.asciidoc 963 B

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