# Virtual Machine Hosts and ECS

**URL:** <https://discuss.elastic.co/t/virtual-machine-hosts-and-ecs/216477>\
**Category:** Elasticsearch\
**Created:** [January 24, 2020, 6:33pm UTC](https://discuss.elastic.co/t/virtual-machine-hosts-and-ecs/216477 "2020-01-24T18:33:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Micah\_Hunsberger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/micah_hunsberger/32/147436_2.png) [@Micah\_Hunsberger](https://discuss.elastic.co/u/Micah_Hunsberger)\
**Post date:** [January 24, 2020, 6:33pm UTC](https://discuss.elastic.co/t/virtual-machine-hosts-and-ecs/216477/1 "2020-01-24T18:33:59Z")

</div>

If I have events coming from a Virtual Machine and want to enrich the events with information about the host it is running on, in ECS, where would I put that information?

For example, the `add_host_metadata` processor for Beats adds the following information for the _VM_ under `host.*`, but I'd want to add similar information about the physical machine its running on.

```auto
{
   "host":{
      "architecture":"x86_64",
      "name":"example-host",
      "id":"",
      "os":{
         "family":"darwin",
         "build":"16G1212",
         "platform":"darwin",
         "version":"10.12.6",
         "kernel":"16.7.0",
         "name":"Mac OS X"
      },
      "ip": ["192.168.0.1", "10.0.0.1"],
      "mac": ["00:25:96:12:34:56", "72:00:06:ff:79:f1"],
      "geo": {
          "continent_name": "North America",
          "country_iso_code": "US",
          "region_name": "New York",
          "region_iso_code": "NY",
          "city_name": "New York",
          "name": "nyc-dc1-rack1",
          "location": "40.7128, -74.0060"
        }
   }
}

```

---

<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:** [February 21, 2020, 6:34pm UTC](https://discuss.elastic.co/t/virtual-machine-hosts-and-ecs/216477/2 "2020-02-21T18:34:00Z")

</div>

Closed on February 21, 2020, 6:34pm UTC

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