# Create New Fields from Metricbeat

**URL:** <https://discuss.elastic.co/t/create-new-fields-from-metricbeat/299394>\
**Category:** Metrics\
**Created:** [March 11, 2022, 4:37am UTC](https://discuss.elastic.co/t/create-new-fields-from-metricbeat/299394 "2022-03-11T04:37:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![personal.riz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/personal.riz/32/98989_2.png) [@personal.riz](https://discuss.elastic.co/u/personal.riz)\
**Post date:** [March 11, 2022, 4:37am UTC](https://discuss.elastic.co/t/create-new-fields-from-metricbeat/299394/1 "2022-03-11T04:37:56Z")

</div>

Hi guys, i want to ask how to create new fields from metricbeat value like host.network.in.bytes for network monitoring.  
i want to create query PPL from metricbeat value but the value is null, i think because the value from host.network.in.bytes is not readable, so im trying to create new fields NetworkInbound for host.network.in.bytes but the value isn't appear.

```auto
input {
  beats {
    port => 5044
  }
}

filter {
      mutate {
        add_fields=> {"NetworkInbound" => "host.network.in.bytes"}
      }
    }

output {
  elasticsearch{
    hosts => ["100.100.100.100:9200"]
    index => "metricbeat"

```

after use this metricbeat.conf the value from NetworkInbound only "host.network.in.byes" string not the value like this

 ![createfields](https://us1.discourse-cdn.com/elastic/original/3X/b/6/b6576e443ce759b078dcb5d0d7862951b64d821e.png)

my question is : How to create new fields for host.network.in.bytes, host.network.out.bytes for monitoring network so the TOP 5 VALUES will be appear ?

should i use add\_fields at processor metricbeat like this ? or maybe you have an advice for me

```auto
processors:
  - add_fields:
      target: project
      fields:
        name: myproject
        id: '574734885120952459'

```

---

<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:** [April 8, 2022, 4:38am UTC](https://discuss.elastic.co/t/create-new-fields-from-metricbeat/299394/2 "2022-04-08T04:38:55Z")

</div>

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