Skip to content

Commit 39be7c9

Browse files
committed
add ilm info
1 parent bb45afc commit 39be7c9

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

_sources/elk/elastic/indexes/ilm.rst.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,32 @@ get all indices' ilm policy, phase, steps, and actions
119119
120120
GET _all/_ilm/explain?filter_path=indices.*.step,indices.*.action,indices.*.phase
121121
122+
migrate a datastream/index to another ilm step
123+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
124+
125+
move an index to frozen:
126+
127+
.. code-block:: console
128+
129+
POST _ilm/move/INDEX
130+
{
131+
"current_step": {
132+
"phase": "warm",
133+
"action": "complete",
134+
"name": "complete"
135+
},
136+
"next_step": {
137+
"phase": "frozen"
138+
}
139+
}
140+
141+
It doens't provide any reasonable feedback, and `_cat/shards` won't
142+
tell you, but it's starting the process of getting ready to move to
143+
the frozen tier.
144+
145+
Checking `_ilm/explain` will give more information.
146+
147+
.. code-block:: console
148+
149+
GET INDEX/_ilm/explain
150+

elk/elastic/indexes/ilm.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,30 @@ <h2>get all indices’ ilm policy, phase, steps, and actions<a class="headerlink
135135
</pre></div>
136136
</div>
137137
</section>
138+
<section id="migrate-a-datastream-index-to-another-ilm-step">
139+
<h2>migrate a datastream/index to another ilm step<a class="headerlink" href="#migrate-a-datastream-index-to-another-ilm-step" title="Link to this heading"></a></h2>
140+
<p>move an index to frozen:</p>
141+
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">POST _ilm/move/INDEX</span>
142+
<span class="go">{</span>
143+
<span class="go"> &quot;current_step&quot;: {</span>
144+
<span class="go"> &quot;phase&quot;: &quot;warm&quot;,</span>
145+
<span class="go"> &quot;action&quot;: &quot;complete&quot;,</span>
146+
<span class="go"> &quot;name&quot;: &quot;complete&quot;</span>
147+
<span class="go"> },</span>
148+
<span class="go"> &quot;next_step&quot;: {</span>
149+
<span class="go"> &quot;phase&quot;: &quot;frozen&quot;</span>
150+
<span class="go"> }</span>
151+
<span class="go">}</span>
152+
</pre></div>
153+
</div>
154+
<p>It doens’t provide any reasonable feedback, and <cite>_cat/shards</cite> won’t
155+
tell you, but it’s starting the process of getting ready to move to
156+
the frozen tier.</p>
157+
<p>Checking <cite>_ilm/explain</cite> will give more information.</p>
158+
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">GET INDEX/_ilm/explain</span>
159+
</pre></div>
160+
</div>
161+
</section>
138162
</section>
139163

140164

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)