Mapper_parsing_exception

Hello Team,
I have been getting this issue no matter what. I have applied mutate (convert,rename) json but still get the following issue.

"reason"=>"Could not dynamically add mapping for field [app.kubernetes.io/name]. Existing mapping for [kubernetes.labels.app] must be of type object but found [text].

"reason"=>"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].

Here is the snippet of the stdout logstash

"labels" => {
            "app.kubernetes.io/instance" => "project-prod",
                "app.kubernetes.io/name" => "project",
                     "pod-template-hash" => "9h346436"

Could you tell me how and what I should be doing, here?
BTW mapping is dynamic too!

What does the mapping look like for those fields?

Here it is,

"mappings" : {
      "dynamic" : "true"

Solution I did was, I renamed the filed using mutate, rename and I got something like this

"labels" => {
            "appInstance" => "project-prod",
                "appName" => "project",
                     "appPodTemplateHash" => "9h346436"

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