logstash-plugins / logstash-filter-mutate

Apache License 2.0
16 stars 75 forks source link

add a `coerce` action to attribute default values when nil #76

Open jsvd opened 8 years ago

jsvd commented 8 years ago

set a default value if the field exists but the value is null. proposed syntax:

filter {
  mutate {
    coerce => {
       "field1" => 0
       "field2" => "default string"
     }
   }
}