bytes.asciidoc 984 B

123456789101112131415161718192021222324252627
  1. [[bytes-processor]]
  2. === Bytes Processor
  3. Converts a human readable byte value (e.g. 1kb) to its value in bytes (e.g. 1024).
  4. Supported human readable units are "b", "kb", "mb", "gb", "tb", "pb" case insensitive. An error will occur if
  5. the field is not a supported format or resultant value exceeds 2^63.
  6. [[bytes-options]]
  7. .Bytes Options
  8. [options="header"]
  9. |======
  10. | Name | Required | Default | Description
  11. | `field` | yes | - | The field to convert
  12. | `target_field` | no | `field` | The field to assign the converted value to, by default `field` is updated in-place
  13. | `ignore_missing` | no | `false` | If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document
  14. include::common-options.asciidoc[]
  15. |======
  16. [source,js]
  17. --------------------------------------------------
  18. {
  19. "bytes": {
  20. "field": "file.size"
  21. }
  22. }
  23. --------------------------------------------------
  24. // NOTCONSOLE