# Could not dynamically add mapping for field \[app.kubernetes.io/instance\]. Existing mapping for \[kubernetes.labels.app\] must be of type object but found \[text\]

**URL:** <https://discuss.elastic.co/t/could-not-dynamically-add-mapping-for-field-app-kubernetes-io-instance-existing-mapping-for-kubernetes-labels-app-must-be-of-type-object-but-found-text/172180>\
**Category:** Elasticsearch\
**Created:** [March 13, 2019, 3:50pm UTC](https://discuss.elastic.co/t/could-not-dynamically-add-mapping-for-field-app-kubernetes-io-instance-existing-mapping-for-kubernetes-labels-app-must-be-of-type-object-but-found-text/172180 "2019-03-13T15:50:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaiksuhale](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@shaiksuhale](https://discuss.elastic.co/u/shaiksuhale)\
**Post date:** [March 13, 2019, 3:50pm UTC](https://discuss.elastic.co/t/could-not-dynamically-add-mapping-for-field-app-kubernetes-io-instance-existing-mapping-for-kubernetes-labels-app-must-be-of-type-object-but-found-text/172180/1 "2019-03-13T15:50:08Z")

</div>

Im using fluentbit to scrape logs and send it to logstash. logstash forwards it to ES.  
i already have a field with kubernetes.labels.app on a separate event(production)  
I am using helm for my development event and helm creates the labels with dots for eg: [app.kubernetes.io/instance](http://app.kubernetes.io/instance).  
As you can see the error i get in the title. it doesn't like that the mapping already exists and is of different type.  
I have tried renaming the labels using mutate filter in the input section of the fluentbit config file but that does not help. i also tried the de\_dot filter.  
any workaround for this like the way you have for beats using drop\_field processors?

---

<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 10, 2019, 3:50pm UTC](https://discuss.elastic.co/t/could-not-dynamically-add-mapping-for-field-app-kubernetes-io-instance-existing-mapping-for-kubernetes-labels-app-must-be-of-type-object-but-found-text/172180/2 "2019-04-10T15:50:14Z")

</div>

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