Manually port policy changes
This commit is contained in:
parent
16fc67535c
commit
32165a4ccd
|
@ -523,7 +523,9 @@ You can use the same options for `ctx` variables as the [notification](#notifica
|
|||
|
||||
The following sample template policy is for a rollover use case:
|
||||
|
||||
1. Create a policy with an `ism_template` field.
|
||||
The following sample template policy is for a rollover use case.
|
||||
|
||||
1. Create a policy with an `ism_template` field:
|
||||
|
||||
```json
|
||||
PUT _opensearch/_ism/policies/rollover_policy
|
||||
|
@ -554,10 +556,10 @@ PUT _opensearch/_ism/policies/rollover_policy
|
|||
|
||||
You need to specify the `index_patterns` field. If you don't specify a value for `priority`, it defaults to 0.
|
||||
|
||||
1. Set up a template with the `rollover_alias` as `log` :
|
||||
2. Set up a template with the `rollover_alias` as `log` :
|
||||
|
||||
```json
|
||||
PUT _template/ism_rollover
|
||||
PUT _index_template/ism_rollover
|
||||
{
|
||||
"index_patterns": ["log*"],
|
||||
"settings": {
|
||||
|
@ -566,7 +568,7 @@ PUT _template/ism_rollover
|
|||
}
|
||||
```
|
||||
|
||||
1. Create an index with the `log` alias:
|
||||
3. Create an index with the `log` alias:
|
||||
|
||||
```json
|
||||
PUT log-000001
|
||||
|
@ -579,7 +581,7 @@ PUT log-000001
|
|||
}
|
||||
```
|
||||
|
||||
1. Index a document to trigger the rollover condition:
|
||||
4. Index a document to trigger the rollover condition:
|
||||
|
||||
```json
|
||||
POST log/_doc
|
||||
|
|
Loading…
Reference in New Issue