# Copying field values

**URL:** <https://discuss.elastic.co/t/copying-field-values/242520>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 24, 2020, 2:13pm UTC](https://discuss.elastic.co/t/copying-field-values/242520 "2020-07-24T14:13:50Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![macg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/macg/32/72712_2.png) [@macg](https://discuss.elastic.co/u/macg)\
**Post date:** [August 4, 2020, 12:29pm UTC](https://discuss.elastic.co/t/copying-field-values/242520/8 "2020-08-04T12:29:54Z")

</div>

I feel like I'm basically trying to do exactly what @madduck proposed here:

> [@Hosts duplicated with and without fqdn](https://discuss.elastic.co/t/hosts-duplicated-with-and-without-fqdn/238546/7):
>
> Hi Christian, glad you found something that works for you. To tie into your earlier question about doing it with winlogbeat processors thats also possible. processors: - drop\_fields: fields: ["host.name"] - copy\_fields: fields: - from: host.hostname to: host.name You will have to drop the field first because the copy\_fields function cant write into already existing fields.

That gives me some hope I'm not totally out to lunch, but I'm having a heck of a time getting my hooks into the field I'm after.

---

_[View the full topic](https://discuss.elastic.co/t/copying-field-values/242520)._
