Skip to main content
Version: 1.x

Convert

Filter plugin : Convert​

Description​

Convert a field’s value to a different type, such as converting a string to an integer.

Options​

nametyperequireddefault value
new_typestringyes-
source_fieldstringyes-
new_type [string]​

Conversion type, supports string, integer, long, float, double and boolean now.

source_field [string]​

Source field.

Examples​

convert {
source_field = "age"
new_type = "integer"
}

Convert the age field to integer type