format
Subcommands
| Subcommand | Description | Syntax |
|---|---|---|
fmtbytes | Formats a number into a human-readable byte size | fmtbytes(<expr>) |
Examples
fmtbytes
For a numeric field size containing 1024, this example sets readable_bytes to 1 KiB:
| eval readable_bytes=fmtbytes(size)