Skip to content

Instantly share code, notes, and snippets.

@afalko
Created August 10, 2018 06:16
Show Gist options
  • Save afalko/f0d17c696c9ff2ab302a52cecb1502fd to your computer and use it in GitHub Desktop.
Save afalko/f0d17c696c9ff2ab302a52cecb1502fd to your computer and use it in GitHub Desktop.
{
"zipkin:span_template": {
"order": 0,
"index_patterns": [
"zipkin:span-*"
],
"settings": {
"index": {
"mapper": {
"dynamic": "false"
},
"requests": {
"cache": {
"enable": "true"
}
},
"analysis": {
"filter": {
"traceId_filter": {
"type": "pattern_capture",
"preserve_original": "true",
"patterns": [
"([0-9a-f]{1,16})$"
]
}
},
"analyzer": {
"traceId_analyzer": {
"filter": "traceId_filter",
"type": "custom",
"tokenizer": "keyword"
}
}
},
"number_of_shards": "5",
"number_of_replicas": "1"
}
},
"mappings": {
"span": {
"_source": {
"excludes": [
"_q"
]
},
"properties": {
"traceId": {
"type": "keyword",
"norms": false
},
"name": {
"type": "keyword",
"norms": false
},
"localEndpoint": {
"type": "object",
"dynamic": false,
"properties": {
"serviceName": {
"type": "keyword",
"norms": false
}
}
},
"remoteEndpoint": {
"type": "object",
"dynamic": false,
"properties": {
"serviceName": {
"type": "keyword",
"norms": false
}
}
},
"timestamp_millis": {
"type": "date",
"format": "epoch_millis"
},
"duration": {
"type": "long"
},
"annotations": {
"enabled": false
},
"tags": {
"enabled": false
},
"_q": {
"type": "keyword",
"norms": false
}
}
},
"_default_": {
"dynamic_templates": [
{
"strings": {
"mapping": {
"type": "keyword",
"norms": false,
"ignore_above": 256
},
"match_mapping_type": "string",
"match": "*"
}
}
]
}
},
"aliases": {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment