You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 16, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: docs/ism/index.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Index State Management (ISM) is a plugin that lets you automate these periodic,
15
15
16
16
For example, you can define a policy that moves your index into a `read_only` state after 30 days and then deletes it after a set period of 90 days.
17
17
18
-
You might want to perform an index rollover after a certain amount of time, take a snapshot prior to the rollover, or run a `_forcemerge` operation on an index during off-peak hours to improve search performance during peak hours.
18
+
You might want to perform an index rollover after a certain amount of timeor run a `force_merge` operation on an index during off-peak hours to improve search performance during peak hours.
19
19
20
20
## Get started with ISM
21
21
@@ -27,11 +27,12 @@ A policy is a set of rules that describes how an index should be managed. For in
27
27
28
28
1. Choose the **Index Policies** tab.
29
29
2. Choose **Create policy**.
30
-
3. In the **Policy** section, enter a policy ID.
30
+
3. In the **Name policy** section, enter a policy ID.
31
31
4. In the **Define policy** section, enter your policy.
32
32
5. Choose **Create**.
33
33
34
-
After you create a policy, your next step is to attach this policy to an index or indices. You can attach policies to one or more index templates.
34
+
After you create a policy, your next step is to attach this policy to an index or indices.
35
+
You can also include the `policy_id` in an index template so when an index is created that matches the index template pattern, the index will have the policy attached to it.
35
36
36
37
### Step 2: Attach policies to indices
37
38
@@ -40,24 +41,24 @@ After you create a policy, your next step is to attach this policy to an index o
40
41
3. Choose **Apply policy**.
41
42
4. From the **Policy ID** menu, choose the policy that you created.
42
43
You can see a preview of your policy.
43
-
5. If your policy includes a rollover action, specify a rollover alias.
44
-
Make sure that the alias that you enter already exists.
44
+
5. If your policy includes a rollover operation, specify a rollover alias.
45
+
Make sure that the alias that you enter already exists. For more information about the rollover operation, see [rollover](../ism/policies/#rollover).
45
46
6. Choose **Apply**.
46
47
47
-
After you attach a policy to an index, a background task runs every 5 minutes to check if the conditions defined in the policy are met. If the conditions are met, the policy executes the actions set in the policy. To change the default time interval for this background task, see [Settings](../ism/settings/).
48
+
After you attach a policy to an index, a job is created that executes every 5 minutes by default to perform the actions set in the policy and check the conditions to transition the index into different states. To change the default time interval for this job, see [Settings](../ism/settings/).
48
49
49
-
If you want to use an Elasticsearch operation to create an index with a policy already attached to it, see [ISM API](../ism/api/).
50
+
If you want to use an Elasticsearch operation to create an index with a policy already attached to it, see [create index](../ism/api//#create-index).
50
51
51
52
### Step 3: Manage indices
52
53
53
54
1. Choose **Managed Indices**.
54
55
2. To change your policy, see [Change Policy](../ism/managedindices#changepolicy).
55
56
3. To attach a rollover alias to your index, select your policy and choose **Add rollover alias**.
56
-
Make sure that the alias that you enter already exists.
57
+
Make sure that the alias that you enter already exists. For more information about the rollover operation, see [rollover](../ism/policies/#rollover).
57
58
4. To remove a policy, choose your policy, and then choose **Remove policy**.
58
59
5. To retry a policy, choose your policy, and then choose **Retry policy**.
59
60
60
-
For information about automating the policy management process, see [Managed Indices](../ism/managedindices/).
61
+
For information about managing your policies, see [Managed Indices](../ism/managedindices/).
61
62
62
-
Make sure that you run the ISM plugin with full admin access.
63
+
To use the ISM plugin, you need to have the correct admin privileges as set in the security plugin.
Copy file name to clipboardExpand all lines: docs/ism/managedindices.md
+22-24Lines changed: 22 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ has_children: false
8
8
9
9
# Managed indices
10
10
11
-
You can automate the changing or updating of a policy on a schedule using the managed index operations.
11
+
You can change or update a policy using the managed index operations.
12
12
13
-
This table lists the parameters that you can update using the managed index operation.
13
+
This table lists the fields of managed index operations.
14
14
15
15
Parameter | Description | Type | Required | Read Only
16
16
:--- | :--- |:--- |:--- |
@@ -34,27 +34,25 @@ The following example shows a managed index policy:
34
34
35
35
```json
36
36
{
37
-
"managed_index":{
38
-
"name":"my_index",
39
-
"index":"my_index",
40
-
"index_uuid":"sOKSOfkdsoSKeofjIS",
41
-
"enabled":true,
42
-
"enabled_time":1553112384,
43
-
"last_updated_time":1553112384,
44
-
"schedule":{
45
-
"interval":{
46
-
"period":1,
47
-
"unit":"MINUTES",
48
-
"start_time":1553112384
49
-
}
50
-
},
51
-
"policy_id":"log_rotation",
52
-
"policy_version":1,
53
-
"policy":{
54
-
...
55
-
},
56
-
"change_policy":null
57
-
}
37
+
"managed_index": {
38
+
"name": "my_index",
39
+
"index": "my_index",
40
+
"index_uuid": "sOKSOfkdsoSKeofjIS",
41
+
"enabled": true,
42
+
"enabled_time": 1553112384,
43
+
"last_updated_time": 1553112384,
44
+
"schedule": {
45
+
"interval": {
46
+
"period": 1,
47
+
"unit": "MINUTES",
48
+
"start_time": 1553112384
49
+
}
50
+
},
51
+
"policy_id": "log_rotation",
52
+
"policy_version": 1,
53
+
"policy": {...},
54
+
"change_policy": null
55
+
}
58
56
}
59
57
```
60
58
@@ -66,7 +64,7 @@ If an index is stuck in its current state, never proceeding, and you want to upd
66
64
67
65
If you update the policy without including an identical state, ISM updates the policy only after all actions in the current state finish executing. Alternately, you can choose a specific state in your old policy after which you want the new policy to take effect.
68
66
69
-
To change a policy, do the following:
67
+
To change a policy using Kibana, do the following:
70
68
71
69
- Under **Managed indices**, choose the indices that you want to attach the new policy to.
72
70
- To attach the new policy to indices in specific states, choose **Choose state filters**, and then choose those states.
0 commit comments