zipkin.storage.elasticsearch.zipkin_template.json Maven / Gradle / Ivy
{
"template": "${__INDEX__}-*",
"settings": {
"index.number_of_shards": ${__NUMBER_OF_SHARDS__},
"index.number_of_replicas": ${__NUMBER_OF_REPLICAS__},
"index.requests.cache.enable": true,
"analysis": {
"analyzer": {
"traceId_analyzer": {
"type": "custom",
"tokenizer": "keyword",
"filter": "traceId_filter"
}
},
"filter": {
"traceId_filter": {
"type": "pattern_capture",
"patterns": ["([0-9a-f]{1,16})$"],
"preserve_original": true
}
}
}
},
"mappings": {
"_default_": {
"dynamic_templates": [
{
"strings": {
"mapping": {
KEYWORD,
"ignore_above": 256
},
"match_mapping_type": "string",
"match": "*"
}
},
{
"value": {
"match": "value",
"mapping": {
"match_mapping_type": "string",
KEYWORD,
"ignore_above": 256,
"ignore_malformed": true
}
}
},
{
"annotations": {
"match": "annotations",
"mapping": {
"type": "nested"
}
}
},
{
"binaryAnnotations": {
"match": "binaryAnnotations",
"mapping": {
"type": "nested"
}
}
}
],
"_all": {
"enabled": false
}
},
"span": {
"properties": {
"traceId": ${__TRACE_ID_MAPPING__},
"timestamp_millis": {
"type": "date",
"format": "epoch_millis"
},
"annotations": {
"type": "nested"
},
"binaryAnnotations": {
"type": "nested"
}
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy