Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit d2a9e87

Browse files
authored
Merge pull request #150 from ashwinkumar12345/ism_a
ISM feedback
2 parents 3438c48 + 5bdddb6 commit d2a9e87

File tree

5 files changed

+167
-148
lines changed

5 files changed

+167
-148
lines changed

docs/images/ism.png

-9.58 KB
Loading

docs/ism/api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Use the index state management operations to programmatically work with policies
1818

1919
---
2020

21-
## Create index
21+
## Add policy at index creation
2222

23-
Creates an index. To create an index with a policy attached to it, include the policy as an index setting in the request.
23+
You can attach a policy to an index at the time you’re creating the index.
2424

2525
#### Request
2626

docs/ism/index.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Index State Management (ISM) is a plugin that lets you automate these periodic,
1515

1616
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.
1717

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 time or run a `force_merge` operation on an index during off-peak hours to improve search performance during peak hours.
1919

2020
## Get started with ISM
2121

@@ -27,11 +27,12 @@ A policy is a set of rules that describes how an index should be managed. For in
2727

2828
1. Choose the **Index Policies** tab.
2929
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.
3131
4. In the **Define policy** section, enter your policy.
3232
5. Choose **Create**.
3333

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.
3536

3637
### Step 2: Attach policies to indices
3738

@@ -40,24 +41,24 @@ After you create a policy, your next step is to attach this policy to an index o
4041
3. Choose **Apply policy**.
4142
4. From the **Policy ID** menu, choose the policy that you created.
4243
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).
4546
6. Choose **Apply**.
4647

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/).
4849

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).
5051

5152
### Step 3: Manage indices
5253

5354
1. Choose **Managed Indices**.
5455
2. To change your policy, see [Change Policy](../ism/managedindices#changepolicy).
5556
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).
5758
4. To remove a policy, choose your policy, and then choose **Remove policy**.
5859
5. To retry a policy, choose your policy, and then choose **Retry policy**.
5960

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/).
6162

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.
6364
{: .note }

docs/ism/managedindices.md

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ has_children: false
88

99
# Managed indices
1010

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.
1212

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.
1414

1515
Parameter | Description | Type | Required | Read Only
1616
:--- | :--- |:--- |:--- |
@@ -34,27 +34,25 @@ The following example shows a managed index policy:
3434

3535
```json
3636
{
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+
}
5856
}
5957
```
6058

@@ -66,7 +64,7 @@ If an index is stuck in its current state, never proceeding, and you want to upd
6664

6765
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.
6866

69-
To change a policy, do the following:
67+
To change a policy using Kibana, do the following:
7068

7169
- Under **Managed indices**, choose the indices that you want to attach the new policy to.
7270
- To attach the new policy to indices in specific states, choose **Choose state filters**, and then choose those states.

0 commit comments

Comments
 (0)