# Field duplication pod anotation

**URL:** <https://discuss.elastic.co/t/field-duplication-pod-anotation/358137>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 24, 2024, 2:22pm UTC](https://discuss.elastic.co/t/field-duplication-pod-anotation/358137 "2024-04-24T14:22:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddoroshenko](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@ddoroshenko](https://discuss.elastic.co/u/ddoroshenko)\
**Post date:** [April 24, 2024, 2:22pm UTC](https://discuss.elastic.co/t/field-duplication-pod-anotation/358137/1 "2024-04-24T14:22:45Z")

</div>

Hi,

I have the following annotation for my pod

```auto
co.elastic.logs/enabled: true
co.elastic.logs/processors.1.add_fields.target: ''
co.elastic.logs/processors.1.add_fields.fields.abc: abc_value
co.elastic.logs/processors.2.add_fields.target: 'root_field_1'
co.elastic.logs/processors.2.add_fields.fields.nested_field_1: nested_field_1_value
co.elastic.logs/processors.3.add_fields.target: 'root_field_2'
co.elastic.logs/processors.3.add_fields.fields.nested_field_2: nested_field_2_value

```

As a result I get duplicated fields like this

```auto
{
  "abc": "abc_value",
  "root_field_1": {
    "nested_field_1": "nested_field_1_value"
  },
  "root_field_2": {
    "nested_field_2": "nested_field_2_value"
  },
  "nested_field_1": "nested_field_1_value",
  "nested_field_2": "nested_field_2_value"
}

```

What could be a problem?
