Hi,
I have the following annotation for my pod
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
{
"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?