Closed quoctuan2311 closed 10 months ago
Because control for Size Index I have created an index lifecycle policy and index template to manage it.
PUT _index_template/elastalert { "priority": 100, "template": { "settings": { "index": { "lifecycle": { "name": "elastalert-policy" }, "mapping": { "total_fields": { "limit": "10000" } }, "refresh_interval": "5s", "number_of_replicas": "0" } }, "mappings": { "dynamic_templates": [ { "strings_as_keyword": { "mapping": { "ignore_above": 204800, "type": "text" } } } ] } }, "index_patterns": [ "elastalert*" ], "composed_of": [], "_meta": { "description": "index template for elastalert" } }
PUT _index_template/elastalert { "priority": 100, "template": { "settings": { "index": { "mapping": { "total_fields": { "limit": "10000" } }, "refresh_interval": "5s", "number_of_replicas": "0" } }, "mappings": { "dynamic_templates": [ { "strings_as_keyword": { "mapping": { "ignore_above": 204800, "type": "text" } } } ] } }, "index_patterns": [ "elastalert*" ], "composed_of": [], "_meta": { "description": "index template for elastalert" } }
But after index be delete by index lifecycle policy. elastalert can not re-create index in elasticsearch. I know manual execute run script elastalert-create-index in Elast Alert Service
elastalert-create-index
Because control for Size Index I have created an index lifecycle policy and index template to manage it.
But after index be delete by index lifecycle policy. elastalert can not re-create index in elasticsearch. I know manual execute run script
elastalert-create-index
in Elast Alert Service