Merge pull request #196 from omurbekjk/patch-1

Added missed "template" settings
This commit is contained in:
Andrew Etter 2021-10-04 09:42:10 -07:00 committed by GitHub
commit d313fd2e8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -558,10 +558,12 @@ The following sample template policy is for a rollover use case.
PUT _index_template/ism_rollover PUT _index_template/ism_rollover
{ {
"index_patterns": ["log*"], "index_patterns": ["log*"],
"template": {
"settings": { "settings": {
"plugins.index_state_management.rollover_alias": "log" "plugins.index_state_management.rollover_alias": "log"
} }
} }
}
``` ```
3. Create an index with the `log` alias: 3. Create an index with the `log` alias:
@ -586,6 +588,12 @@ The following sample template policy is for a rollover use case.
} }
``` ```
5. Verify if the policy is attached to the `log-000001` index:
```json
GET _plugins/_ism/explain/log-000001?pretty
```
## Example policy ## Example policy
The following example policy implements a `hot`, `warm`, and `delete` workflow. You can use this policy as a template to prioritize resources to your indices based on their levels of activity. The following example policy implements a `hot`, `warm`, and `delete` workflow. You can use this policy as a template to prioritize resources to your indices based on their levels of activity.