# Netinfo data not added to events using add\_host\_metadata processor

**URL:** <https://discuss.elastic.co/t/netinfo-data-not-added-to-events-using-add-host-metadata-processor/240387>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 8, 2020, 3:57pm UTC](https://discuss.elastic.co/t/netinfo-data-not-added-to-events-using-add-host-metadata-processor/240387 "2020-07-08T15:57:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricalo](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@ricalo](https://discuss.elastic.co/u/ricalo)\
**Post date:** [July 8, 2020, 3:57pm UTC](https://discuss.elastic.co/t/netinfo-data-not-added-to-events-using-add-host-metadata-processor/240387/1 "2020-07-08T15:57:25Z")

</div>

I'm trying to add `host.ip` and `host.mac` fields to filebeat events, but the fields are not showing up in Kibana.

I'm using the following related configuration in `filebeat.yml`:

```auto
processors:
  - add_host_metadata:
      netinfo.enabled: true
      geo:
        # Token describing this location
        name: my_geo_name
        location: "my_lat, my_long"
        continent_name: my_continent
        country_iso_code: my_country_code
        region_name: my_region
        region_iso_code: my_region_code
        city_name: my_city

```

And this is one of the results after applying the configuration:

```auto
    "host": {
      "geo": {
        "continent_name": "my_continent",
        "region_iso_code": "my_region_code",
        "city_name": "my_city",
        "country_iso_code": "my_country_code",
        "name": "my_geo_name",
        "location": "my_lat, my_long",
        "region_name": "my_region"
      },
      "name": "my_hostname"
    },

```

Note that I waited for ~30 mins to discard any caching issues.

I see the following errors in `/var/log/beats/filebeat`, but I'm not sure they are related:

```auto
2020-07-08T11:54:11.630-0400 ERROR instance/metrics_file_descriptors.go:39 Error while retrieving FD information: error retrieving process stats: cannot find matching process for pid=62706
2020-07-08T11:54:11.630-0400 ERROR instance/metrics.go:92 Error while getting memory usage: error retrieving process stats: cannot find matching process for pid=62706
2020-07-08T11:54:11.630-0400 ERROR instance/metrics.go:136 Error retrieving CPU percentages: error retrieving process stats: cannot find matching process for pid=62706

```

I've seen other threads discussing such log errors in FreeBSD with no apparent resolution.

Is there anything I'm missing? Thanks for any pointers.

Some more information about my environment:

- Filebeat host: FreeBSD 12.1
- Elastic/Kibana host: FreeBSD 12.1
- Elastic/Kibana version: 7.7.1
- Beats version: 7.7.1

---

<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:** [August 5, 2020, 5:57pm UTC](https://discuss.elastic.co/t/netinfo-data-not-added-to-events-using-add-host-metadata-processor/240387/2 "2020-08-05T17:57:34Z")

</div>

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