Hello guys,
I'm having a trouble with a mutate filter, where i need to set a field copy to lowercase.
But when i try to load on elastic , the field copy won't be lowercase.
My Logstash Version is 5.2
i'm using the configuration below:
filter {
mutate {
rename => {"desc_ufe" => "state" }
rename => {"desc_local" => "city" }
rename => {"desc_bairro" => "neighborhood" }
rename => {"desc_lograd" => "streetName" }
rename => {"desc_cep" => "postalCode" }
rename => {"desc_lograd_complemento" => "supplement" }
rename => {"cod_mun" => "IBGEcode" }
convert => {"IBGEcode" => "string"}
add_field => {"statecp" => "%{state}"}
add_field => {"citycp" => "%{city}"}
add_field => {"neighborhoodcp" => "%{neighborhood}"}
add_field => {"streetNamecp" => "%{streetName}"}
add_field => {"supplementcp" => "%{supplement}"}
lowercase => ["statecp","citycp","neighborhoodcp","streetNamecp","supplementcp"]
}
}
Thank you for any help.