Mutate type as boolean.

Description

Hello ,

I have a column with string value as True or False . While inserting it into elasticsearch i want to convert this column with type as boolean and dump data . so i tried doing this by mutate convert function . it works for integer and float . how can i do this for boolean.

below is my filter.

filter {

if [type] == "rawdata"
{
csv {
separator => ','
quote_char => '|' # arbitrary, default one is included in the data and does not work
columns => [ 'datetime1','GPSAvaliable','SOSType' ]

}

mutate
{

convert => ["GPSAvaliable","boolean"] #getting error for this
convert => ["SOSType","boolean"] #getting error for this
convert => ["PORT","integer"]
convert => ["Speed","float"]
}

}

  1. }
    }

Environment

None

Status

Assignee

Philippe Weber

Reporter

k

Labels

Affects versions

Priority

Configure