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

Allow dynamic field templating in "copy" operation

Open tsouza opened this issue 7 years ago • 0 comments

The following does not works:

mutate {
    copy => ["SomeField", "Other%{FieldName}"]
}

I guess we could fix this by adding the following:

dest_field = event.sprintf(dest_field)

right before line https://github.com/logstash-plugins/logstash-filter-mutate/blob/master/lib/logstash/filters/mutate.rb#L456

tsouza avatar Jan 16 '18 22:01 tsouza