Skip to content

Instantly share code, notes, and snippets.

@haoch
Created October 21, 2016 06:54
Show Gist options
  • Save haoch/5756c561360e62a34702093e6b80696a to your computer and use it in GitHub Desktop.
Save haoch/5756c561360e62a34702093e6b80696a to your computer and use it in GitHub Desktop.
{
"template": "eagle_metric*",
"settings": {
"index.cache.field.type": "soft",
"index.store.compress.stored": true,
"index.refresh_interval": "5s",
"index.query.default_field": "name",
"number_of_shards": 7,
"number_of_replicas": 2
},
"mappings": {
"_default_": {
"_all": {
"enabled": true
},
"_source": {
"compress": true
},
"dynamic_templates": [
{
"field_message_template": {
"mapping": {
"index": "analyzed",
"type": "string"
},
"match_mapping_type": "string",
"path_match": "name"
}
},
{
"field_message_template": {
"mapping": {
"index": "analyzed",
"type": "string"
},
"match_mapping_type": "string",
"path_match": "siteId"
}
},
{
"field_message_template": {
"mapping": {
"index": "analyzed",
"type": "string"
},
"match_mapping_type": "string",
"path_match": "appId"
}
},
{
"field_message_template": {
"mapping": {
"index": "analyzed",
"type": "string"
},
"match_mapping_type": "string",
"path_match": "appExecId"
}
},
{
"field_message_template": {
"mapping": {
"index": "analyzed",
"type": "string"
},
"match_mapping_type": "string",
"path_match": "componentId"
}
},
{
"field_timestamp_template": {
"mapping": {
"index": "not_analyzed",
"type": "date"
},
"match_mapping_type": "string",
"path_match": "*timestamp"
}
},
{
"field_gctime_template": {
"mapping": {
"index": "not_analyzed",
"type": "double"
},
"match_mapping_type": "string",
"path_match": "value"
}
}
],
"_ttl": {
"enabled": true,
"default": "7d"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment