logstash-filter-mutate icon indicating copy to clipboard operation
logstash-filter-mutate copied to clipboard

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

Open jsvd opened this issue 9 years ago • 0 comments

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

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

jsvd avatar Jun 14 '16 08:06 jsvd