# Hosts duplicated with and without fqdn

**URL:** <https://discuss.elastic.co/t/hosts-duplicated-with-and-without-fqdn/238546>\
**Category:** SIEM\
**Created:** [June 24, 2020, 6:36pm UTC](https://discuss.elastic.co/t/hosts-duplicated-with-and-without-fqdn/238546 "2020-06-24T18:36:45Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![madduck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/madduck/32/63444_2.png) [@madduck](https://discuss.elastic.co/u/madduck)\
**Post date:** [June 30, 2020, 12:28pm UTC](https://discuss.elastic.co/t/hosts-duplicated-with-and-without-fqdn/238546/7 "2020-06-30T12:28:47Z")

</div>

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.

---

_[View the full topic](https://discuss.elastic.co/t/hosts-duplicated-with-and-without-fqdn/238546)._
