Making nested , flattened fields searchable

Kibana version : 7.13

Elasticsearch version : 7.13

APM Server version : 7.13

APM Agent language and version : java 1.8

Fresh install or upgraded from other version? fresh install

Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc. :-no

So I have a json field data in my index and to make use of the data properly it has to be either nested or flattened. But when I map this json field as either nested or flattened it says those fields are unindexed and cannot be searched. I can see these fields in my index shows as searchable and aggregatable. But they dont show up in visulaization.

If I make the field as type "object" it can be visualized but the data is not aligned properly in a nested way.

So how can I map the field so that my nested or flattened (both cases have same issue) field could be visualized.

here is my mapping . When I try to create a visualisation using banner it does not show up in the fields

 "Banners": {
          "type": "nested",
          "properties": {
            "Banner": {
              "type": "text",
              "fields": {
                "keyword": {
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "time": {
              "type": "text",
              "fields": {
                "keyword": {
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            }
          }
        },


I also could see them in here

Why am i not able to visualize based on banner..

My discover also shows below

How else can i make a nested or flattened json fiels type indexed

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