logstash-filter-mutate
logstash-filter-mutate copied to clipboard
add a `coerce` action to attribute default values when nil
set a default value if the field exists but the value is null. proposed syntax:
filter {
mutate {
coerce => {
"field1" => 0
"field2" => "default string"
}
}
}