FIX: mapping fields limit by disable dynamic queue stats id
This commit is contained in:
parent
9cfd9b15e3
commit
dc562c0d74
|
@ -35,6 +35,15 @@ PUT _template/$[[SETUP_TEMPLATE_NAME]]
|
||||||
},
|
},
|
||||||
"match_mapping_type": "string"
|
"match_mapping_type": "string"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"disable_payload_instance_stats": {
|
||||||
|
"path_match": "payload.instance.stats.*",
|
||||||
|
"mapping": {
|
||||||
|
"type": "object",
|
||||||
|
"enabled": false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -35,6 +35,15 @@ PUT _template/$[[SETUP_TEMPLATE_NAME]]
|
||||||
},
|
},
|
||||||
"match_mapping_type": "string"
|
"match_mapping_type": "string"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"disable_payload_instance_stats": {
|
||||||
|
"path_match": "payload.instance.stats.*",
|
||||||
|
"mapping": {
|
||||||
|
"type": "object",
|
||||||
|
"enabled": false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,76 +1,84 @@
|
||||||
PUT _template/$[[SETUP_TEMPLATE_NAME]]
|
PUT _template/$[[SETUP_TEMPLATE_NAME]]
|
||||||
{
|
{
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"template": "$[[SETUP_INDEX_PREFIX]]*",
|
"template": "$[[SETUP_INDEX_PREFIX]]*",
|
||||||
"settings": {
|
"settings": {
|
||||||
"index": {
|
"index": {
|
||||||
"max_result_window": "10000000",
|
"max_result_window": "10000000",
|
||||||
"mapping": {
|
"mapping": {
|
||||||
"total_fields": {
|
"total_fields": {
|
||||||
"limit": "20000"
|
"limit": "20000"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"analysis": {
|
||||||
|
"analyzer": {
|
||||||
|
"suggest_text_search": {
|
||||||
|
"filter": [
|
||||||
|
"word_delimiter"
|
||||||
|
],
|
||||||
|
"tokenizer": "classic"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"number_of_shards": "1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mappings": {
|
||||||
|
"doc": {
|
||||||
|
"dynamic_templates": [
|
||||||
|
{
|
||||||
|
"strings": {
|
||||||
|
"mapping": {
|
||||||
|
"ignore_above": 256,
|
||||||
|
"type": "keyword"
|
||||||
|
},
|
||||||
|
"match_mapping_type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"analysis": {
|
{
|
||||||
"analyzer": {
|
"disable_payload_instance_stats": {
|
||||||
"suggest_text_search": {
|
"path_match": "payload.instance.stats.*",
|
||||||
"filter": [
|
"mapping": {
|
||||||
"word_delimiter"
|
"type": "object",
|
||||||
],
|
"enabled": false
|
||||||
"tokenizer": "classic"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"number_of_shards": "1"
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mappings": {
|
"aliases": {}
|
||||||
"doc": {
|
|
||||||
"dynamic_templates": [
|
|
||||||
{
|
|
||||||
"strings": {
|
|
||||||
"mapping": {
|
|
||||||
"ignore_above": 256,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"match_mapping_type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"aliases": {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PUT _template/$[[SETUP_INDEX_PREFIX]]metrics-rollover
|
PUT _template/$[[SETUP_INDEX_PREFIX]]metrics-rollover
|
||||||
{
|
{
|
||||||
"order" : 100000,
|
"order" : 100000,
|
||||||
"template" : "$[[SETUP_INDEX_PREFIX]]metrics*",
|
"template" : "$[[SETUP_INDEX_PREFIX]]metrics*",
|
||||||
"settings" : {
|
"settings" : {
|
||||||
"index" : {
|
"index" : {
|
||||||
"format" : "7",
|
"format" : "7",
|
||||||
"codec" : "best_compression",
|
"codec" : "best_compression",
|
||||||
"number_of_shards" : "1",
|
"number_of_shards" : "1",
|
||||||
"translog.durability":"async"
|
"translog.durability":"async"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mappings" : {
|
"mappings" : {
|
||||||
"doc": {
|
"doc": {
|
||||||
"dynamic_templates" : [
|
"dynamic_templates" : [
|
||||||
{
|
{
|
||||||
"strings" : {
|
"strings" : {
|
||||||
"mapping" : {
|
"mapping" : {
|
||||||
"ignore_above" : 256,
|
"ignore_above" : 256,
|
||||||
"type" : "keyword"
|
"type" : "keyword"
|
||||||
},
|
},
|
||||||
"match_mapping_type" : "string"
|
"match_mapping_type" : "string"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
},
|
}
|
||||||
"aliases" : { }
|
},
|
||||||
}
|
"aliases" : { }
|
||||||
|
}
|
||||||
|
|
||||||
PUT $[[SETUP_INDEX_PREFIX]]metrics-00001
|
PUT $[[SETUP_INDEX_PREFIX]]metrics-00001
|
||||||
{
|
{
|
||||||
|
@ -82,26 +90,26 @@ PUT $[[SETUP_INDEX_PREFIX]]metrics-00001
|
||||||
"is_write_index":true
|
"is_write_index":true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mappings": {
|
"mappings": {
|
||||||
"doc":{
|
"doc":{
|
||||||
"dynamic_templates": [
|
"dynamic_templates": [
|
||||||
{
|
{
|
||||||
"strings": {
|
"strings": {
|
||||||
"match_mapping_type": "string",
|
"match_mapping_type": "string",
|
||||||
"mapping": {
|
"mapping": {
|
||||||
"ignore_above": 256,
|
"ignore_above": 256,
|
||||||
"type": "keyword"
|
"type": "keyword"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"properties": {
|
|
||||||
"timestamp": {
|
|
||||||
"type": "date"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
],
|
||||||
|
"properties": {
|
||||||
|
"timestamp": {
|
||||||
|
"type": "date"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PUT _template/$[[SETUP_INDEX_PREFIX]]logs-rollover
|
PUT _template/$[[SETUP_INDEX_PREFIX]]logs-rollover
|
||||||
|
|
|
@ -1,46 +1,55 @@
|
||||||
PUT _template/$[[SETUP_TEMPLATE_NAME]]
|
PUT _template/$[[SETUP_TEMPLATE_NAME]]
|
||||||
{
|
{
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"index_patterns": [
|
"index_patterns": [
|
||||||
"$[[SETUP_INDEX_PREFIX]]*"
|
"$[[SETUP_INDEX_PREFIX]]*"
|
||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
"index": {
|
"index": {
|
||||||
"max_result_window": "10000000",
|
"max_result_window": "10000000",
|
||||||
"mapping": {
|
"mapping": {
|
||||||
"total_fields": {
|
"total_fields": {
|
||||||
"limit": "20000"
|
"limit": "20000"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"analysis": {
|
||||||
|
"analyzer": {
|
||||||
|
"suggest_text_search": {
|
||||||
|
"filter": [
|
||||||
|
"word_delimiter"
|
||||||
|
],
|
||||||
|
"tokenizer": "classic"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"number_of_shards": "1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mappings": {
|
||||||
|
"doc": {
|
||||||
|
"dynamic_templates": [
|
||||||
|
{
|
||||||
|
"strings": {
|
||||||
|
"mapping": {
|
||||||
|
"ignore_above": 256,
|
||||||
|
"type": "keyword"
|
||||||
|
},
|
||||||
|
"match_mapping_type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"analysis": {
|
{
|
||||||
"analyzer": {
|
"disable_payload_instance_stats": {
|
||||||
"suggest_text_search": {
|
"path_match": "payload.instance.stats.*",
|
||||||
"filter": [
|
"mapping": {
|
||||||
"word_delimiter"
|
"type": "object",
|
||||||
],
|
"enabled": false
|
||||||
"tokenizer": "classic"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"number_of_shards": "1"
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mappings": {
|
"aliases": {}
|
||||||
"doc": {
|
|
||||||
"dynamic_templates": [
|
|
||||||
{
|
|
||||||
"strings": {
|
|
||||||
"mapping": {
|
|
||||||
"ignore_above": 256,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"match_mapping_type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"aliases": {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PUT _ilm/policy/ilm_$[[SETUP_INDEX_PREFIX]]metrics-30days-retention
|
PUT _ilm/policy/ilm_$[[SETUP_INDEX_PREFIX]]metrics-30days-retention
|
||||||
|
|
|
@ -1,44 +1,53 @@
|
||||||
PUT _template/$[[SETUP_TEMPLATE_NAME]]
|
PUT _template/$[[SETUP_TEMPLATE_NAME]]
|
||||||
{
|
{
|
||||||
"index_patterns": [
|
"index_patterns": [
|
||||||
"$[[SETUP_INDEX_PREFIX]]*"
|
"$[[SETUP_INDEX_PREFIX]]*"
|
||||||
],
|
],
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"settings": {
|
"settings": {
|
||||||
"index": {
|
"index": {
|
||||||
"max_result_window": "10000000",
|
"max_result_window": "10000000",
|
||||||
"mapping": {
|
"mapping": {
|
||||||
"total_fields": {
|
"total_fields": {
|
||||||
"limit": "20000"
|
"limit": "20000"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"analysis": {
|
"analysis": {
|
||||||
"analyzer": {
|
"analyzer": {
|
||||||
"suggest_text_search": {
|
"suggest_text_search": {
|
||||||
"filter": [
|
"filter": [
|
||||||
"word_delimiter"
|
"word_delimiter"
|
||||||
],
|
],
|
||||||
"tokenizer": "classic"
|
"tokenizer": "classic"
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"number_of_shards": "1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mappings": {
|
|
||||||
"dynamic_templates": [
|
|
||||||
{
|
|
||||||
"strings": {
|
|
||||||
"mapping": {
|
|
||||||
"ignore_above": 256,
|
|
||||||
"type": "keyword"
|
|
||||||
},
|
|
||||||
"match_mapping_type": "string"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
},
|
||||||
},
|
"number_of_shards": "1"
|
||||||
"aliases": {}
|
}
|
||||||
|
},
|
||||||
|
"mappings": {
|
||||||
|
"dynamic_templates": [
|
||||||
|
{
|
||||||
|
"strings": {
|
||||||
|
"mapping": {
|
||||||
|
"ignore_above": 256,
|
||||||
|
"type": "keyword"
|
||||||
|
},
|
||||||
|
"match_mapping_type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"disable_payload_instance_stats": {
|
||||||
|
"path_match": "payload.instance.stats.*",
|
||||||
|
"mapping": {
|
||||||
|
"type": "object",
|
||||||
|
"enabled": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"aliases": {}
|
||||||
}
|
}
|
||||||
DELETE _plugins/_ism/policies/ilm_$[[SETUP_INDEX_PREFIX]]metrics-30days-retention
|
DELETE _plugins/_ism/policies/ilm_$[[SETUP_INDEX_PREFIX]]metrics-30days-retention
|
||||||
PUT _plugins/_ism/policies/ilm_$[[SETUP_INDEX_PREFIX]]metrics-30days-retention
|
PUT _plugins/_ism/policies/ilm_$[[SETUP_INDEX_PREFIX]]metrics-30days-retention
|
||||||
|
|
Loading…
Reference in New Issue