How to convert a field boolean to integer in logstash

Hi,
I have one boolean column with 0 and 1. I have to add those values to calculate average . so i need to convert boolean value into integer in logstash. I tried :

filter {
mutate {
convert => { "is_onsite" => "integer" }
}
}

but it throws an error. any mistake in my code? please help me....

What's the error?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.