Skip to content

Zipkin tags object disabled in ES #48

@vineetalagh

Description

@vineetalagh

Zipkin version: 2.23.2

ES Version: AWS ES 7.9

I have setup zipkin to write spans to our AWS managed ES instance. I am unable to search tags object in ES because they are not searchable. They have been marked as unknown datatype and are not enabled in the template.

How can I resolve this?

The zipkin template is:

{
  "zipkin-span-2021-08-11" : {
    "aliases" : { },
    "mappings" : {
      "_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-2021-08-11",
        "creation_date" : "1628640006251",
        "requests" : {
          "cache" : {
            "enable" : "true"
          }
        },
        "number_of_replicas" : "1",
        "uuid" : "-BYja4VdRb6PdKOd5nFxRg",
        "version" : {
          "created" : "7090199"
        }
      }
    }
  }
}

Thanks,
Vineet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions