# Unknown setting copy for mutate

**URL:** <https://discuss.elastic.co/t/unknown-setting-copy-for-mutate/96187>\
**Category:** Logstash\
**Created:** [August 8, 2017, 5:35am UTC](https://discuss.elastic.co/t/unknown-setting-copy-for-mutate/96187 "2017-08-08T05:35:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryac/32/11727_2.png) [@ryac](https://discuss.elastic.co/u/ryac)\
**Post date:** [August 8, 2017, 5:35am UTC](https://discuss.elastic.co/t/unknown-setting-copy-for-mutate/96187/1 "2017-08-08T05:35:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 8, 2017, 6:14am UTC](https://discuss.elastic.co/t/unknown-setting-copy-for-mutate/96187/2 "2017-08-08T06:14:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ryac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryac/32/11727_2.png) [@ryac](https://discuss.elastic.co/u/ryac)\
**Post date:** [August 8, 2017, 6:49am UTC](https://discuss.elastic.co/t/unknown-setting-copy-for-mutate/96187/3 "2017-08-08T06:49:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 5, 2017, 6:49am UTC](https://discuss.elastic.co/t/unknown-setting-copy-for-mutate/96187/4 "2017-09-05T06:49:20Z")

</div>

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