Why converting ILM to ISM is a rebuild, not a copy
Migration Assistant does not migrate ILM or ISM policies, so every lifecycle rule your Elasticsearch clusters run today has to be rebuilt as an ISM policy on the OpenSearch side. Teams moving indices often assume the data carries its lifecycle with it, but the index moves while the rules that roll it over, move it between tiers, snapshot it and delete it stay behind. Until the ISM policies exist and are attached, indices that were aging out on schedule in Elasticsearch will simply stop changing state, which can fill disks or keep data longer than your retention terms allow.
ISM works as a state machine. A policy defines named states, each with actions to run (such as setting an index read-only or taking a snapshot), and transitions that move an index to another state when a condition is met. Conditions are based on index age, size or document count. An example from the OpenSearch ISM documentation shows read_only after 30 days, snapshot after 60 and delete after 90. Elasticsearch ILM uses phases such as hot, warm, cold, frozen and delete with similar intent, but the phase model and action names differ, so each ILM phase must be mapped to a state with its own actions and transitions rather than copied field by field.
The effort depends on how many policies exist, how many phases each one has, which indices they attach to and how each rule is verified. Inventory every ILM policy, its index templates and the aliases or data streams that depend on them, then confirm which ones still matter. Plan a test index for each lifecycle path and run it through the full sequence in a non-production cluster before cutover. Ask any partner to quote from that inventory and test plan, not from a count of policies alone.
Which ILM concepts map to ISM and which need redesign
This table compares Elasticsearch ILM phases and actions with their closest OpenSearch ISM states, actions and transitions, and flags the items that need redesign or sit outside the policy. Read the Design column as the work your team must do before the policy can be trusted. The main takeaway is that phase names carry over easily, but rollover, snapshot timing and data stream handling need explicit decisions.
| ILM concept | ISM equivalent | Design status | What to confirm |
|---|---|---|---|
| Hot phase (rollover) | Initial state with rollover action | Maps with redesign | Rollover conditions and the write alias must be defined per index pattern |
| Warm phase (allocation, read-only) | Warm state with allocation and read_only actions | Maps with redesign | Node attribute names and tier layout on the target cluster |
| Cold phase (allocation, freeze) | Cold state with allocation and transitions | Needs confirmed action | Confirm which freeze-style behavior exists in your target version before relying on it |
| Frozen phase | No direct state | Needs redesign | Replace with a cold state and snapshot-based retention, then test query needs |
| Shrink | Shrink action | Maps with redesign | Shard count target and the index settings required before shrink runs |
| Force merge | Force_merge action | Maps cleanly | Segment count target and when it runs relative to read-only |
| Searchable snapshot | Snapshot action or searchable snapshot features | Needs confirmed action | Repository setup and whether searchable snapshots are available in your version |
| Wait for snapshot | Snapshot action with a snapshot state before delete | Maps with redesign | Snapshot policy name and ordering so deletes never run before a successful snapshot |
| Delete phase | Delete action in a final state | Maps cleanly | Transition conditions that match your retention rule |
| Data streams | Not migrated by Migration Assistant | Handled outside policy | Recreate data streams and their backing index attachments on the target cluster |
| Ingest pipelines | Not migrated by Migration Assistant | Handled outside policy | Recreate pipelines and confirm the processors exist in the target version |
Documented paths for moving lifecycle configuration
Moving an Elasticsearch lifecycle setup to OpenSearch involves two separate jobs: moving the indices and their data, and recreating the ILM policies as ISM policies. The paths below cover both, and each one leaves a different part of the work for your team to verify.
Migration Assistant for data movement
Migration Assistant moves indices and documents, but it does not move ISM or ILM policies. Your indices arrive in OpenSearch without any lifecycle attached, so every policy must be recreated before you rely on age-based transitions. Check which source versions and index settings the assistant supports for your cluster, and confirm whether any lifecycle metadata appears on migrated indices so you know what to clean up.
Migration Assistant docsSnapshot and restore
Snapshots carry index data and index settings, but lifecycle policy objects are a separate concern, so confirm with your source version whether they are captured in a snapshot at all. Restoring a snapshot into a new cluster gives you the data you need for backfill, and any policy you need to keep must be exported and reapplied. Test a restore on a non-production cluster and check that restored indices behave as expected before you attach an ISM policy.
Remote reindexing
Remote reindex copies documents from a source cluster into a destination index through the API. It moves data, not policy definitions, so each destination index starts without the lifecycle state of its source. Use it when you need to change mappings or index layout during the move, and plan the policy attachment as a separate step after the copy completes and document counts match.
ISM API for recreating policies
The Index State Management API creates policies from JSON that defines states, actions and transitions, and it can attach a policy to indices by pattern or template. Export your ILM policy definitions in their source form, then translate each phase by hand or with a script, and keep the resulting JSON in version control. Confirm the exact request formats for your OpenSearch version against the ISM documentation before you automate anything.
ISM docsDashboards Index Management UI
The Index Management plugin in OpenSearch Dashboards lets an administrator view, create and edit ISM policies and see which policy each index is running. It suits one-off policies and checking live status, but it is harder to review and repeat than policy files. Use the UI to confirm that policies appear and that indices show the expected state, and keep the authoritative definitions in your repository.
Confirming import and export options
Export and import options for lifecycle configuration depend on your source Elasticsearch version and your OpenSearch version, and they are not interchangeable. Before you plan the work, confirm with the vendor documentation for both sides which definitions can be read out, which can be loaded and whether any tool handles the translation. Record the answer for each policy type, because an option that works for one version may not work for another.
How rollover aliases keep writes working after cutover
The write alias pattern separates the name applications write to from the physical indices behind it. An alias such as logs-write points at exactly one backing index with its write index flag set. When ISM runs a rollover action, OpenSearch creates the next index in a numbered series, moves the write flag to it, and leaves older indices readable through the same alias. Applications keep using one name and never learn that the index behind it changed.
- Bootstrap index and alias: The first index (for example, a name ending in
-000001) and the write alias must exist before ISM applies a rollover action. Without them, the rollover has nothing to roll from. - Write index flag: Only one index behind the alias should be the write index. Confirm how your version handles the flag during and after migration.
- Naming series: The numeric suffix is what lets rollover compute the next name. Renaming the series during cutover breaks that calculation.
- Search across the alias: Reads through the alias span every backing index, so retention and deletion phases affect query results.
- Client behavior: Applications that write through the alias need no change at rollover.
Before cutover, confirm the rollover action syntax and the alias requirements for your OpenSearch version in the ISM documentation.
Some applications, ingest agents or scripts write to a concrete index name such as app-logs-2026.09.01, often created by a daily job or a template with a date in the name. These clients do not use an alias, so rollover has no alias to move. An ISM policy that rolls over such an index will create a new index, but the application keeps writing to the old name, which may now be read-only, closed or deleted by later states.
- Daily name generators: Date-stamped names created by clients are not governed by rollover. Decide whether to retire the naming scheme or change the client.
- Read-only states: A
read_onlyaction on the old name stops writes, so the application starts failing without a clear error on its side. - Index templates: Templates that apply settings to new names may not match names used by the migrated data. Check the pattern against the names your clients actually send.
- Ingest tooling: Shippers such as log forwarders often hold the index name in their configuration. Inventory those settings before cutover.
- Migration of existing names: Concrete indices copied from Elasticsearch carry their names forward, so the ISM policy must target them directly or through a pattern.
Identify every writer that uses a concrete name before enabling any ISM policy that changes index state.
Time-based rollover creates a new index when the current one reaches a given age. It suits log and event data where retention is also time-based, because each backing index covers a predictable window. The rollover condition is evaluated by ISM against the index creation time, so the policy timing depends on when the first index was created, not on when the migrated data was written.
- Creation time after migration: Indices restored or reindexed during migration may get new creation dates. Confirm how age is calculated for them before setting conditions.
- Interaction with retention: Set the rollover interval shorter than the retention window so that old indices age out in whole units.
- Quiet periods: A rollover can run while data is still arriving, so confirm that writers switch to the new index through the alias without a gap.
- Clock and time zone: Confirm which clock the cluster uses for index age, especially across nodes in several regions.
- Testing: Run the policy against a non-production copy and watch the first rollover before relying on it.
Confirm the age condition syntax and how creation dates are set for migrated indices in the ISM documentation for your version.
Size-based rollover creates a new index when the current one reaches a set size, or in some configurations a set document count. It keeps shard sizes within a planned range even when ingest volume changes. The trade-off is that the number and timing of indices become less predictable, which affects retention, snapshot planning and the dashboards that assume one index per period.
- Shard sizing: Size thresholds are usually chosen to match planned shard sizes. Revisit the thresholds if the migrated data has a different volume profile.
- Unpredictable index count: Retention rules based on index age need to account for indices that roll over early during bursts.
- Mixed conditions: Combining age and size conditions causes whichever threshold is reached first to trigger the rollover. Document which one applies in each policy.
- Dashboards and queries: Queries that assume one index per day may return different results across variable-size series. Review them with application owners.
- Verification: Load a representative volume into a test alias and confirm the rollover happens at the expected point.
Confirm the size and document count condition names and their units in the ISM documentation for your version before writing the policy.
Cutover is the point where existing indices, aliases and writers must agree with the new policy. Most rollover failures after cutover come from one of three gaps: the alias or bootstrap index was never created in the target cluster, a writer still uses a concrete name, or the policy was attached to indices that do not match its pattern. Each check below can be run before any production traffic moves.
- Alias inventory: List every alias the migrated applications write through and confirm each one exists in the target cluster with a single write index.
- Writer inventory: List every client, shipper and script with its index name setting, and mark those that need a change.
- Policy attachment: Confirm which indices each policy applies to and that no unrelated indices match the pattern.
- Forced rollover test: Trigger a rollover in a test environment, then send a write through the alias and confirm it lands in the new index.
- Failure behavior: Decide what happens if a write fails after a read-only action, and test the application's response.
Write the results of these checks into the cutover plan so that the owner of each writer can sign off before the switch.
Sequence for converting and testing lifecycle policies
The sequence turns each Elasticsearch ILM policy into a tested OpenSearch ISM policy, attaches it to the right indices, and retires the old rules only after the new ones have proven they act on schedule. The output is a documented cutover with a clear rollback path.
Inventory policies, indices and aliases
Export every ILM policy from the source cluster and record which index templates, indices and rollover aliases reference each one. Include the phase settings, the rollover conditions, the delete and snapshot actions, and any policy that is attached to a data stream or to an index by hand. Owners of each index family should confirm the retention rule behind each policy, because the ILM settings often reflect an older decision. Done when every policy has a row that names its indices, its aliases and its owner, and no index is left without a known lifecycle rule.
Map each ILM phase to ISM states
Rebuild each policy by hand as an ISM policy. Translate hot, warm, cold, frozen and delete phases into ISM states, and translate each ILM action into an ISM action and transition with the same trigger condition, such as index age, size or document count. Check every action individually, since Migration Assistant does not carry these policies over and the two systems do not share a schema. Record any ILM behavior that has no direct ISM equivalent so it can be decided before the pilot. Done when a mapping document shows each source phase and action beside its ISM state, transition and condition, with the gaps listed.
Rebuild rollover aliases and write indices
Confirm that every rollover alias has a write index marked as the write target and that the ISM rollover action points to that alias. Adjust the naming pattern and the initial index so that the first rolled index follows the same convention as the existing ones. Decide whether the rollover condition stays on age, size or document count, and test the condition on a sample alias. Done when a test alias rolls over under the intended condition, the new index receives writes, and the old index moves into the next ISM state without manual intervention.
Attach policies through templates and settings
Attach each ISM policy either through an index template, using the ISM template field so new indices match automatically, or through index-level settings for indices that already exist. Use the template path for new indices and explicit attachment for the existing set. Check that the policy attachment does not override a conflicting setting that another team applied. Done when a newly created test index shows the expected policy in its managed state, and each existing index in the inventory shows the policy it was assigned.
Pilot on non-production indices
Run the ISM policies against non-production indices where the owners can confirm the outcome. Use shortened timelines or test conditions, such as small size or document thresholds, so that each transition fires during the pilot window, and avoid relying on the production retention periods for the test. Record each transition, the time it occurred and any action that failed or stalled. Use the Index State Management documentation to read the explain output for each index. Done when every state transition in the mapping has fired at least once in the pilot, every failure has a documented fix, and the owners have signed off on the observed behavior.
Run old and new rules in parallel
Where the platform allows, keep the ILM policies active on the source cluster while the ISM policies run on the target, so the two sets of outcomes can be compared against the same indices. Compare which indices move to each phase, when snapshots are taken and when deletions happen. Treat any difference as a finding until its cause is known. Where parallel running is not practical, for example when the two clusters cannot hold the same data, document that limit and rely on the pilot results. Done when the comparison report shows no unexplained difference in timing or action for the production-like indices.
Cut over and then decommission ILM
Switch the production indices to their ISM policies in a scheduled change, confirm that each index reports its managed state, and keep a written rollback step that restores the prior attachment. Monitor the first transitions after cutover against the mapping document. Only after the monitoring period set by the owners, remove the ILM policies from the source and document the final state. Done when every production index is managed by an ISM policy, the monitoring checks pass, and the decommission record lists the removed ILM policies and the owners who approved removal.
How rollover, ISM states and snapshots fit together
Writes go through a write alias to the active index, which is the only index that rolls over. An ISM policy attached to that index then moves it through states such as hot, read_only, snapshot and delete, with each transition triggered by an age, size or document count condition. The snapshot repository sits outside the cluster as a separate store, so check that the snapshot state runs before the delete state and that the repository is reachable before you rely on either.
Shows how a write alias, ISM state transitions and the snapshot repository connect.
Testing ISM policies before they touch production data
Test every converted ISM policy on a staging cluster with indices that reach each transition in minutes or hours instead of days, and confirm the result before a policy is attached to production data. Start with the ISM explain API, which reports the state each managed index is in, the action currently running, and the transition conditions still pending. Run it after each step of the test so you can see whether an index moved to the state you expected, and whether the age or size thresholds you set are being evaluated against the values you assumed. Confirm the exact request format and the fields returned for your version in the OpenSearch Index State Management documentation, because the explain output and the retry API differ between releases.
For rollover, create a test index with the write alias that your applications use, attach the policy, and verify that a new backing index is created when the rollover condition is met and that the write alias points only to the newest index. Check that the old index is no longer receiving writes and that searches through the read alias still return documents from every backing index. Then test the transitions that change data: read-only, snapshot and delete. Use a test snapshot repository and confirm that snapshots appear in it and that deleted test indices are gone. Note that a failed policy stops progressing and shows the failure in the explain output, so the retry API is the path to resume it after you fix the cause. Plan to review every failed state in staging before production, because a failed policy on production data is harder to recover from.
Record the results of each test with the policy version, the OpenSearch version and the staging thresholds you used, so the production run is repeatable. Ask whoever will operate the cluster to confirm the test method against the documentation for the version you deploy, and keep the test indices and policy definitions in version control with the production change record.
Questions teams ask before converting ILM to ISM
How much effort does converting ILM policies to ISM take?
The effort depends on how many policies exist, how far they have drifted from one another, and how many indices, aliases and write paths depend on them. Each Elasticsearch ILM policy has to be read, its phases mapped to ISM states, and its transitions rebuilt by hand, because Migration Assistant does not migrate ISM or ILM policies. Teams with a small number of policies that share a pattern usually finish the mapping faster than teams with dozens of policies, custom actions and per-tenant exceptions. Ask any quote to break the work down by policy count, the number of distinct retention rules, and the number of rollover aliases that must be changed.
Can our team convert the policies on its own?
Yes, many teams can, provided someone understands both the ILM phases they run today and the ISM state machine model. An ISM policy is a set of states, actions and transitions triggered by index age, size or document count, so the work is mostly translation and verification. The harder part is usually knowing what the current policies are supposed to do, which often means checking with the people who set retention periods. If the team lacks ISM experience or has no one free to test changes against staging data, a partner can do the mapping and test runs while your engineers review the results.
What do we need from our platform and data owners?
Platform owners need to confirm the cluster version, plugin availability, node and disk capacity, and where snapshot repositories live. Data owners need to state retention and deletion rules in business terms, including legal hold, audit windows and any data that must never be deleted automatically. Application teams need to confirm which aliases and index patterns their writers and readers use, because rollover depends on write aliases being in place. Agree on these inputs before mapping starts, since changing retention rules halfway through a test cycle invalidates the results.
How long should testing run, and why is no duration given?
No duration is given here because the right length depends on your retention periods, index sizes, ingest rate and how many policy paths you need to exercise. A policy with a 90-day delete phase cannot be proven end to end in a single week, so teams usually test transitions with shortened thresholds on a non-production cluster and then verify the real thresholds through configuration review and a controlled observation period. Ask for a test plan that lists each state transition, the test method for it, the owner who signs off and the evidence kept for each result.
Does the snapshot and cutover work need a partner?
Not always. Teams with experience running OpenSearch snapshots and planned change windows can handle cutover internally. A partner is worth considering when the cluster is large, when snapshot repositories must be rebuilt, when ISM policies must be in place before live writes move, or when rollback has to be rehearsed against real data. Ask whether the quote covers snapshot verification, the cutover runbook, rollback steps and post-cutover monitoring of policy execution, and who is accountable if an index is deleted earlier than intended.
What should we ask for in a quote for this work?
Ask for a written scope that lists every policy to be converted, the ISM states and transitions for each, the rollover alias changes, the test plan and the acceptance criteria. Separate one-time work, such as mapping and testing, from recurring work, such as policy review after upgrades or retention changes. Ask which items depend on your inputs, how change requests are priced, and whether the quote includes handover documentation your operations team can use. Engagements at DeployOpen are fixed-scope, so agree these items in writing before work starts.
Which ISM behaviors should engineers verify after conversion?
Engineers should confirm that each policy is attached to the indices it was meant to cover, that rollover conditions fire on the expected size or age, and that the delete or snapshot actions run at the intended thresholds. Check the policy explain output for failed or stuck indices, and confirm that write aliases point to the correct index after each rollover. Keep an eye on the operations documentation for failed index policies, since a misconfigured action can stop a lifecycle without an obvious alert.
What goes wrong when lifecycle rules are rebuilt
Lifecycle rules fail quietly. Nothing in a rebuilt ISM setup throws an error when an index lacks a policy or a delete runs early, so the risks below are found in production unless each one is checked before cutover. Each card names a failure and a check the team can run.
Indices left without a policy
Policies are not carried over, so indices created after cutover can exist with no lifecycle at all. Retention then depends on someone remembering to attach a policy by hand. Prevention: attach the policy through an index template matching the index pattern, then create a test index that matches the pattern and confirm with the explain API that a policy is applied.
ISM docsRollover aliases missing
Rollover-based policies write through an alias. If the alias or its write index is not recreated after cutover, rollover fails and writes to the alias are rejected. Prevention: create each alias with a write index flag in a rehearsal, send a test document through the alias, and confirm that a forced rollover creates the next index and moves the write flag.
Deletes running earlier than intended
Elasticsearch durations and ISM conditions do not always map one to one, and a copied age value can be measured from a different timestamp, such as index creation rather than the date the data was written. Prevention: for each delete transition, document the reference date and compare the planned delete date for a sample index with the retention requirement, using a clock-controlled test cluster.
Snapshots not taken before deletion
A delete state with no snapshot step before it removes the only copy of data that a retention or legal hold process may still need. Prevention: confirm that the snapshot state runs and completes before the delete state in every policy, and verify that a restore of a snapshot taken by the policy succeeds in a non-production cluster.
Applications writing to retired index names
Application code, ingest jobs and dashboards often reference concrete index names or the old lifecycle naming pattern. After the move, writes can land in indices the new policy never touches, or fail outright. Prevention: search client code, pipelines and saved queries for hard-coded index names, switch them to aliases, and run a write test from each client before cutover.
Policies failing silently on unexpected settings
An index with unusual settings, such as a missing rollover alias setting, a read-only block already applied, or a shard count outside the design, can leave a policy in a failed state that nothing alerts on. Prevention: check the policy managed index status for failed indices on a schedule, and test the policy against indices that carry these settings during rehearsal.
What your team needs to provide
Before any policy is written, the engagement needs a complete export of the current Elasticsearch ILM policies and the index templates that reference them, because the index.lifecycle.name setting in those templates is what ties an index to a policy. Ask your team to export every policy, not only the ones they believe are active, and to record which templates, component templates and existing indices use each one. Migration Assistant does not carry ILM or ISM policies across, so this export is the only source of truth for the rebuild. Confirm how your environment stores these definitions, since some teams keep them in infrastructure-as-code and others have drifted from it.
Second, the owners of each data stream or index family must write down their retention rules and any legal hold or regulatory retention obligations, with the basis for each period. An ISM policy will delete data on the schedule it is given, so a retention period that exists only in someone's memory is a compliance gap waiting to happen. Also provide the list of applications, pipelines and aliases that write to these indices, including any that use _rollover or direct index names, because rollover aliases must be changed in the same window as the policy. Named owners should be assigned to approve test results for each phase and to sign off on deletion behavior before production enablement.
Finally, the team must confirm access to the snapshot repository that ISM snapshot actions will use, including the repository name, the registered location, and the cluster role that can create snapshots in it. Confirm the access model in your own environment: who holds the cluster administrator credentials used to apply policies, whether ISM management permissions are restricted to a named group, and how changes are logged and approved. Document these answers in the statement of work so testing can run against production-like permissions rather than an administrator account that hides gaps.
How DeployOpen scopes and delivers ISM conversions
DeployOpen approaches the conversion of Elasticsearch ILM policies as a planned change to lifecycle behavior, not a file copy. Each engagement starts with an inventory of the policies, indices and aliases that depend on them, followed by written ISM policies, a rollover design and a test plan that runs before any production index is touched.
How we scope
- We inventory every ILM policy, index template and alias that governs your indices and record the phases each one uses.
- The written scope lists which policies, data streams and indices are converted, and which are rebuilt by hand because ISM does not migrate them.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before the work begins.
How we build
- We map each ILM phase to an ISM state, with its actions and transitions, and document every condition that triggers a move.
- We build rollover aliases and write indices so policies roll over as intended, and we test them in a non-production cluster first.
- We run test indices through the full lifecycle, including snapshot and delete actions, and record the results against the design.
How we hand over
- You receive the ISM policy files, index template and alias definitions, and a mapping table from each original ILM phase to its ISM state.
- The handover includes a runbook for checking policy status, handling failed transitions and changing retention later.
- Access controls for policy changes are documented alongside the policies so your security and compliance teams can review them.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial conversion is accepted.
- We can retest policy changes when retention rules, index sizes or OpenSearch versions change, so behavior stays as documented.
- Support work is scoped in writing, so you know what a retainer covers before any change is made to a production cluster.

