Why tags has different behavior in version 6.8 and 7.10

When I inserted below json in 6.8 and 7.10

        PUT zipkin-span-2020-12-11/_doc/123
    {
        "traceId": "6ba4cc20cc46a65b",
        "duration": 1665151,
        "remoteEndpoint": {
          "ipv4": "127.0.0.1",
          "port": 45036
        },
        "localEndpoint": {
          "serviceName": "einvoice-client",
          "ipv4": "172.31.0.235"
        },
        "timestamp_millis": 1607516558771,
        "kind": "SERVER",
        "name": "post /v1.03/invoice",
        "id": "6ba4cc20cc46a65b",
        "timestamp": 1607516558771120,
        "tags": {
          "gstin": "abc123",
          "http.method": "POST",
          "http.path": "/einvoice/v1.03/invoice",
          "mvc.controller.class": "EInvoiceController_V1_03",
          "mvc.controller.method": "generateEInvoice"
        }
      }

in 6.8, I can group data by tags.gstin(see below image mapping) but not in 7.10.

image

in 7.10, tags is considered as json object not as mapping you see in above image.

Can any tell me why different behaviour in both version?

Please don't post pictures of text, they are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them :slight_smile:

What is the mapping in 7.10, can you post it?

Why? What is the message? What is the query?
What are the mappings in both case?

Sure I will put text instead if Image.

I think this problem with Zipkin. When Zipkin stores the data it create tags asObject type in both the version.

Here is the mapping of zipkin

    {
      "zipkin:span-2020-12-10" : {
        "aliases" : { },
        "mappings" : {
          "span" : {
            "_source" : {
              "excludes" : [
                "_q"
              ]
            },
            "dynamic_templates" : [
              {
                "strings" : {
                  "match" : "*",
                  "match_mapping_type" : "string",
                  "mapping" : {
                    "ignore_above" : 256,
                    "norms" : false,
                    "type" : "keyword"
                  }
                }
              }
            ],
            "properties" : {
              "_q" : {
                "type" : "keyword"
              },
              "annotations" : {
                "type" : "object",
                "enabled" : false
              },
              "duration" : {
                "type" : "long"
              },
              "id" : {
                "type" : "keyword",
                "ignore_above" : 256
              },
              "kind" : {
                "type" : "keyword",
                "ignore_above" : 256
              },
              "localEndpoint" : {
                "dynamic" : "false",
                "properties" : {
                  "serviceName" : {
                    "type" : "keyword"
                  }
                }
              },
              "name" : {
                "type" : "keyword"
              },
              "parentId" : {
                "type" : "keyword",
                "ignore_above" : 256
              },
              "remoteEndpoint" : {
                "dynamic" : "false",
                "properties" : {
                  "serviceName" : {
                    "type" : "keyword"
                  }
                }
              },
              "shared" : {
                "type" : "boolean"
              },
              "tags" : {
                "type" : "object",
                "enabled" : false
              },
              "timestamp" : {
                "type" : "long"
              },
              "timestamp_millis" : {
                "type" : "date",
                "format" : "epoch_millis"
              },
              "traceId" : {
                "type" : "keyword"
              }
            }
          }
        },
        "settings" : {
          "index" : {
            "number_of_shards" : "5",
            "provided_name" : "zipkin:span-2020-12-10",
            "mapper" : {
              "dynamic" : "false"
            },
            "creation_date" : "1607580612985",
            "requests" : {
              "cache" : {
                "enable" : "true"
              }
            },
            "number_of_replicas" : "1",
            "uuid" : "MLmVLPouTeupSsBgRK5ebg",
            "version" : {
              "created" : "6080099"
            }
          }
        }
      }
    }

Can you tell me how we can resolve this?

Please check my above comment

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