Unknown setting copy for mutate

Hi all,

Having some difficulty in copying a field in Logstash. In my filter, I have this:

mutate {
  copy  => { "original_field" => "new_field" }
}

Testing the configs, I get this:

ERROR logstash.filters.mutate - Unknown setting 'copy' for mutate

Logstash version: 5.3.0
logstash-filter-mutate (3.1.3)

Any idea on what I can do to solve this?

Thanks!
Ryan

Upgrade your mutate filter to one that includes the copy option or upgrade Logstash to one that ships with a sufficiently recent mutate filter.

Alternatively, if the field you want to copy is a plain string you can use add_field instead of copy.

Oh I see, thanks Magnus. I updated the plugin to 3.1.5 and it's working.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.