Convert Data Units
Last updated
Last updated
This operation converts values between different units of digital data, such as bits, bytes, kilobytes, megabytes, and so on. It’s especially useful when you’re dealing with data storage or transfer rates, and you need to switch between binary (base 2) and decimal (base 10) units.
These are the input/output expected data types for this operation:
- Values whose unit of data you want to transform. They must be strings representing numbers.
- Resulting values after transforming them to the selected unit of data.
These are the parameters you need to configure to use this operation (mandatory parameters are marked with a *):
Suppose you want to convert a series of events from megabits into kilobytes:
In your Pipeline, open the required Action configuration and select the input Field.
In the Operation field, choose Convert data units.
Set Input units to Megabits (Mb)
.
Set Output units to Kilobytes (KB)
.
Give your Output field a name and click Save. The data type of the values in your input field will be transformed. For example:
You can try out operations with specific values using the Input field above the operation. You can enter the value in the example above and check the result in the Output field.