set.asciidoc 774 B

123456789101112131415161718192021
  1. [[set-options]]
  2. .Set Options
  3. [options="header"]
  4. |======
  5. | Name | Required | Default | Description
  6. | `field` | yes | - | The field to insert, upsert, or update. Supports <<accessing-template-fields,template snippets>>.
  7. | `value` | yes | - | The value to be set for the field. Supports <<accessing-template-fields,template snippets>>.
  8. | `override` | no | true | If processor will update fields with pre-existing non-null-valued field. When set to `false`, such fields will not be touched.
  9. include::common-options.asciidoc[]
  10. |======
  11. [source,js]
  12. --------------------------------------------------
  13. {
  14. "set": {
  15. "field": "host.os.name",
  16. "value": "{{os}}"
  17. }
  18. }
  19. --------------------------------------------------
  20. // NOTCONSOLE