Applying index rollover policies to an older OpenCTI platform

Platforms initialized before 5.9 do not get rollover policies by default, so they need an upgrade, a policy and template check, a split of every shard over 50 GB and a repointed write alias. This page sets out that path and where the work usually stalls.

On this page

Why older OpenCTI platforms need an index rollover upgrade

A platform initialized before 5.9 does not get rollover policies applied by default, so it has to be brought onto index lifecycle rollover by hand. The work has four parts: upgrade the platform, check the rollover policies and index templates, split every primary shard larger than 50 GB into new indices, and repoint the write alias to the new indices. Rollover policies are applied by default only on platforms initialized at 5.9 or later, so a platform created earlier will not have this behavior until you change it.

The supported path is a staged move, not a single switch. You upgrade OpenCTI through the intermediate versions your starting release requires, then bring the search store to a version OpenCTI supports, and only then apply the policies and split the oversized shards. The exact intermediate OpenCTI and search-store versions depend on where your platform started, so confirm them against the OpenCTI rollover documentation and the release notes for each version on the path. Do not assume a jump directly to the current release is supported without checking those notes.

Before you plan the work, record your starting version, your Elasticsearch or OpenSearch version, and the size of each index and shard. The shard sizes decide how much splitting you need to do, and the starting versions decide how many upgrade steps sit in front of you. Most of the effort sits in the shard split and the alias change, so schedule a maintenance window that covers both, and confirm with your team how long writes can be paused.

What an OpenCTI upgrade changes for index rollover

This table compares each change that affects index rollover on an older OpenCTI platform, what the change does to the existing setup, and the action to take. Read it before upgrading, then work down the rows in order, since the policy and template checks depend on the upgrade being complete.

ChangeImpactAction needed
Default rollover policiesApplied by default only on platforms initialized at 5.9 or laterConfirm the initialization version of your platform before planning changes
Older platformsPlatforms initialized before 5.9 do not get rollover policies by defaultUpgrade the platform, then verify the policies are active
Policy and template checksExisting policies and index templates may not match the rollover setupReview policies and templates against the OpenCTI rollover documentation
Oversized shardsShards larger than 50 GB must move into new indicesSplit every shard above 50 GB into new indices before rollover
Write aliasWrites continue to the old index unless the alias is repointedReconfigure the write alias to point at the new rollover indices
Date-based version numbersVersions read as x.YYMMDD.z, so the date part shows the release date, not a sequenceCompare versions by date and patch number when checking compatibility
Search store minimum versionsElasticsearch 8.0 or OpenSearch 2.9 or later is requiredConfirm your search store version meets the minimum before upgrading OpenCTI

How the write alias moves from oversized indices to rolled-over indices

The flow starts with a platform initialized before 5.9, which does not get rollover policies by default. After the platform is upgraded, the checks on policies and templates run, and a decision asks whether any primary shard exceeds 50 GB. Oversized shards are split into new indices, the write alias is repointed to the new index, and reads and writes are confirmed. If the check fails, the path returns to the original alias so the change can be reversed.

Phases for moving the write alias from oversized indices to rolled-over indices.

Backups and inventory to complete before rollover

Rollover changes how OpenCTI writes to its search store, so the work before it is about being able to undo it and knowing what depends on the current layout. The six items below cover recovery, configuration, dependent writers, a rehearsal environment and version records. Each one has a named owner on most teams, and each should be signed off before the upgrade window opens.

Verified snapshot of search indices

Take a snapshot of every OpenCTI index and alias in the search store, then restore it into a scratch cluster and confirm document counts match the source. A snapshot that has never been restored is not a recovery plan. Record the snapshot name, repository location and time, and confirm the repository is stored outside the cluster that is about to change. Platform engineering or the team that runs Elasticsearch or OpenSearch usually owns this step.

Rollover docs

Inventory of templates, policies and aliases

List every index template, lifecycle policy and write alias that OpenCTI relies on, with the current rollover conditions and the index each alias points to. Compare these against the recommended one-shard policy so you know which resources the upgrade will create, replace or leave alone. Export the definitions to version control so changes can be reviewed and reverted. The search platform administrator usually owns this inventory.

Custom connectors and integrations writing to indices

Identify every custom script, connector, pipeline or external tool that writes directly to OpenCTI indices or aliases, not only through the platform API. Any writer that hardcodes an index name will break or write to the wrong place after repointing aliases. For each one, note the owner, the target alias and the update path. Integration or detection engineering teams usually hold this list, and it often exists only in the heads of the people who built it.

Staging copy of platform and search store

Build a staging environment with the same OpenCTI version, search store version and approximate index sizes as production, restored from the verified snapshot. Run the full sequence there first, including the shard split and alias change, and time each step. Staging also gives you a place to test custom writers without touching live threat data. The platform team usually runs staging, and the security operations lead should agree on what counts as a successful rehearsal.

Record of current versions

Write down the exact OpenCTI image or release, the search store version, the Redis and RabbitMQ versions, and the connector image tags in use. OpenCTI release numbers follow a date-based scheme, so confirm the full tag rather than a family name. Compare these with the minimum versions in the product documentation to decide whether the platform must move first. The platform owner should sign off on this record before any change begins.

Deployment overview

Rollback owner and decision point

Name one person who can stop the change and restore the snapshot, and define the point after which rollback is no longer simple. Once new indices have been written to by the platform, reverting means reconciling data, not just restoring files. Agree in writing which checks must pass before the team moves past each step. The incident lead or service owner usually holds this role, with the security team consulted on any data loss risk.

Upgrade sequence for splitting shards and repointing the write alias

This sequence moves an older OpenCTI platform onto rollover-managed indices in an order that keeps reads and writes working at every stage, with a rollback point before each change that alters data or routing.

  1. Confirm target versions and upgrade path

    Record the current OpenCTI version, the target release line, and the versions of Elasticsearch or OpenSearch, Redis, RabbitMQ and every connector in use. Check the target against the OpenCTI product life cycle documentation and the release notes, and confirm which connector images must move with the platform. Confirm whether the target is a regular release or an LTS build, and that your license covers it. Done when you have a written version matrix and a named rollback image for each component. Rollback point: nothing has changed yet.

  2. Take a full backup before any change

    Snapshot the search indices, the database and the S3-compatible file storage, and record the index names, aliases and document counts. Store the snapshot outside the cluster that will be changed. Verify the snapshot is restorable by listing its contents, since a backup you have not confirmed is not a rollback point. Done when the snapshot reports complete and a restore test on a separate environment has been run or scheduled with a named owner. Rollback point: restore this snapshot if any later step corrupts indices.

  3. Upgrade the platform and workers

    Upgrade the OpenCTI platform and its Python workers to the target version in a staging environment first, following the upgrade path for your deployment method. Let the platform run its automatic migrations and confirm the logs show them completing without errors. Upgrade connectors to versions compatible with the new platform in the same window. Done when the UI loads, the GraphQL API answers, and workers consume messages from RabbitMQ. Rollback point: redeploy the previous images and restore the snapshot if migrations fail.

  4. Check the rollover policy and index templates

    Inspect the index lifecycle policy and index templates that OpenCTI expects, and compare them with the recommended policy for one shard per index, which rolls over at a maximum primary shard size of 50 GB or 75,000,000 documents. Confirm the templates apply to the index patterns OpenCTI writes to. Correct any drift in a staging copy first. Done when the policy and templates match the documented values and a test index created from the template picks up the policy. Rollback point: restore the previous policy and template definitions from the saved export.

  5. Identify every shard above 50 GB

    List primary shard sizes for all OpenCTI indices, including any that were initialized before 5.9 and never rolled over. Flag every shard larger than 50 GB, and note its index name, document count and write status. Keep the list as the work plan for the split. Done when the list is complete, reviewed by the team, and matches the cluster's own shard report rather than a hand-kept spreadsheet. Rollback point: no change has been made to the indices.

  6. Create new indices and split oversized data

    For each flagged index, create a new index that uses the corrected template, then move or reindex the documents into it while the source index stays read-only. Keep the mapping consistent with the template so queries behave the same. Run the copy in batches and compare document counts between source and target after each batch. Done when every flagged index has a target whose document count matches its source and no source index has been deleted. Rollback point: the original indices remain intact, so you can point the platform back at them.

  7. Repoint the write alias to the new indices

    Update the write alias so new writes go to the current rollover index, and confirm that the read alias covers both old and new data. Pause or drain connector traffic first so no writes land between the cutover steps. Confirm the alias definitions with the cluster's alias listing command. Done when the alias lists the expected write index and a test write through the platform appears in that index only. Rollback point: switch the write alias back to the original index while the originals are still in place.

  8. Verify reads, writes and connector ingestion

    Run a set of known queries in the UI and the GraphQL API to confirm that old and new entities both return. Create a test object, confirm it is indexed, and then delete it. Resume connectors one at a time and watch their logs and the RabbitMQ queues for errors or growing backlogs. Done when reads and writes succeed, queues drain, and connector logs show successful imports over the period your team has agreed to observe. Rollback point: if queues stall or reads miss data, pause connectors and restore the write alias and snapshot.

How the 50 GB and 75,000,000 document thresholds shape the policy

The recommended policy for one shard per index rolls over when the primary shard reaches 50 GB or 75,000,000 documents, whichever the policy hits first. Both limits are ceilings on index size, and the document count matters as much as the byte size because a small-document workload can reach 75,000,000 documents long before it reaches 50 GB. Keep the policy in its documented form unless your measurements show a reason to change it, and confirm the exact thresholds in the OpenCTI rollover documentation before you copy them into an older platform's templates.

Shard size drives two things you will feel directly: search latency and recovery time. Each query fans out across shards, and very large shards take longer to scan, merge and cache. When a node restarts or a replica has to be rebuilt, the cluster copies the full shard contents, so oversized shards lengthen the window in which data is under-replicated. Keeping a single primary shard per index means each rolled-over index is a bounded unit of work, which makes capacity planning, snapshot scope and deletion of old indices predictable. The policy also gives the write alias a clear point at which it moves to a new index.

Check your own volume before accepting the defaults. Measure the current size and document count of your largest OpenCTI indices, and estimate the growth rate from your connector mix, since enrichment and bulk imports can add many small documents at once. Unusually large observables, attached files or long descriptions raise bytes per document, so a platform with fewer but heavier documents may hit 50 GB first. Ask your Elasticsearch or OpenSearch administrator to confirm the cluster's shard limits and heap headroom, and decide in advance whether your team will accept more than one shard per index, which changes how the thresholds should be applied.

What makes an index rollover upgrade take longer

This table lists the factors that lengthen an index rollover upgrade on an OpenCTI platform initialized before 5.9, and how each one raises or lowers the work. Use it to size the change window and to decide what to measure before you start. The main takeaway is that oversized shards, the search store upgrade path and the number of writers on the alias usually matter more than the platform upgrade itself.

DriverWhy it mattersWhat to check
Oversized shardsEvery shard above 50 GB must be split into new indices, so more oversized shards means more reindex and cutover steps.List each index and primary shard size, and count shards above 50 GB per index family.
Document countsThe recommended policy also rolls over at 75,000,000 documents, so indices near that count will need splitting even if their size looks acceptable.Compare document counts per index with the 75,000,000 threshold and note which indices exceed it.
Custom templates and policiesPlatforms initialized before 5.9 did not get default rollover policies, and local edits to templates make the expected result harder to verify.Export current index templates and lifecycle policies and diff them against the documented defaults.
Connectors and integrations writing through the aliasEach writer that bypasses or hardcodes an index name must be found and repointed, and missed writers can keep filling old indices.Inventory every connector, worker and custom script that writes to OpenCTI indices and confirm its target.
Search store version and upgrade pathThe search store must be at a version that supports the planned change, and an upgrade of Elasticsearch or OpenSearch adds its own sequence and compatibility checks.Confirm the current version, the minimum version the target OpenCTI release requires, and the documented upgrade route from your current version.
Snapshot and restore windowA verified snapshot before splitting shards is the rollback path, and a large dataset makes snapshot and restore slower.Measure the time to take and test-restore a snapshot of the full index set in a non-production copy.
Availability requirementTeams that need the platform available during the change must plan for write freezes, queue draining and possibly a read-only window.Ask stakeholders which features must stay available, and whether connectors can pause without losing data.

Rollback options for an OpenCTI upgrade by stopping point

If the failure happens before the platform upgrade starts, the platform is still on its pre-5.9 version, rollover policies have not been applied, and the existing indices are unchanged. Rollback in this state is usually limited to confirming that the running version and its configuration are intact. Nothing structural has been altered, so there is no index state to restore.

  • Confirm the running version. Check that the platform and workers still run the version recorded in your change plan before you assume nothing changed.
  • Keep the prior image tags available. Make sure the previous container images or chart versions are still in your registry so you can restart them if an upgrade attempt partly began.
  • Drain queues before stopping. Let RabbitMQ queues empty so no asynchronous writes are left half processed when services stop.
  • Retain the pre-change snapshot. Keep the snapshot taken before the change window, even though this stage should not need it.
  • Record the attempt. Note which step failed and any log errors so the retry starts from a known point.

After restarting, confirm that ingestion and search work as before. Check the OpenCTI rollover documentation for the upgrade prerequisites before scheduling a retry.

Testing rollover in staging before production

Rehearse the whole change on a copy of the platform and its search store before touching production. Restore a recent backup of the Elasticsearch or OpenSearch cluster into a staging environment that matches your production versions, then run the OpenCTI upgrade, the policy and template checks, the shard split and the write alias repointing in the same order you plan to use live. Load a representative data set, meaning one whose object counts, relationship density and largest indices resemble production, because a small sample will not produce any shard large enough to trigger the 50 GB threshold that the rollover policy uses. Confirm that the index sizes in staging reflect what you will split in production before you trust the results.

Once the change is applied in staging, check each behavior the rollover depends on. Confirm that the lifecycle policy is attached to the expected indices and that the template applies to newly created indices, and that the write alias points only at the new write index afterward. Run a connector import and a manual creation through the UI and GraphQL API, then verify that the documents land in the new write index, that reads through the alias return both old and new data, and that search results match what the pre-change staging copy returned for the same queries. Record the exact checks and their results so the production runbook can repeat them without interpretation.

Staging cannot prove production load behavior. It will not show how long a split takes against a live cluster, how ingestion from your real connectors bursts during imports, or how RabbitMQ queues and Python workers behave while writes are redirected. Confirm with your own environment which connectors run on schedules, what peak write volume looks like, and whether a maintenance window covers the split. Check the OpenCTI rollover documentation at OpenCTI indices and rollover policies against your exact platform version, and ask your search store team to confirm the cluster version and snapshot procedure before you accept a staging result as evidence for production.

Questions teams ask before an OpenCTI index rollover upgrade

How much does an OpenCTI index rollover upgrade cost?

No price is published for this work, and the total depends on the scope agreed in writing. The main cost components are internal staff time for planning and approvals, the time to upgrade the platform, the effort to check policies and templates, the shard split itself, and the cutover and verification work. Costs are mostly one-time. Recurring costs come from the infrastructure you run, such as the Elasticsearch or OpenSearch cluster, and from any retainer you add for upgrades and testing. Costs rise with the number of indices, the total data volume, the number of connectors that write to the platform, and how many environments you must validate. Ask any partner for a fixed-scope quote that lists each phase, the environments covered, who performs each task and what evidence you receive at the end.

How long does an OpenCTI rollover upgrade take?

No duration is supplied for this work, so the schedule depends on your data volume, cluster capacity and change windows. The main variables are how many shards exceed the 50 GB threshold, how long the split takes on your hardware, how far behind the platform version is, and how much testing your staging environment requires. Plan for a staging rehearsal before production and allow time for queues to drain before the cutover. Ask for a timeline with named milestones and a rollback point for each one, and confirm which steps need a maintenance window.

What does the rollover work need from our team?

Your team provides access, knowledge and decisions. You need administrators for the OpenCTI platform, the search cluster, the message queue and Redis, plus someone who owns the connectors and their versions. Security or compliance staff should approve any change to authentication, roles or audit settings. You also need a current backup, a list of connectors and their pinned client versions, and agreement on who signs off the cutover. Expect the engineers to spend time reviewing index templates and policies, watching cluster health during the split, and confirming that ingestion works after the change.

Can we perform the OpenCTI rollover upgrade ourselves?

Yes, if your team already runs OpenCTI and its search cluster in production and can work through the official rollover documentation in a staging copy first. The work is sequential and easy to get wrong: the platform must be upgraded, policies and templates checked, every shard above 50 GB split into new indices, and the write alias repointed. A mistake in the alias or template step can send new writes to the wrong index. Teams that lack experience with index operations often bring in a partner for planning, rehearsal and verification while keeping ownership of production changes.

Does an OpenCTI rollover upgrade require a license change?

The rollover documentation does not describe a license change for this work, and the Community Edition is licensed under Apache License 2.0. However, your platform version determines what you can use. Since OpenCTI 7.260224.0, authentication strategies, including SSO, are an Enterprise Edition feature. If you are moving to an LTS line, the LTS release requires a specific LTS license key. Confirm your current edition, the target version and the features you depend on before you start, and ask Filigran directly if your setup includes Enterprise features.

What happens to our data during the shard split?

Oversized shards are split into new indices, and the write alias is then pointed at the new indices so new data flows into the rollover structure. Existing data should remain searchable, but you must confirm that behavior with the documentation for your exact versions and test it in staging. Take a snapshot or verified backup before any change, and record document counts per index before and after the split so you can compare them. Keep the queues drained during the change so that in-flight writes do not land in an inconsistent state. Ask any partner how they verify counts, how they handle failed splits and what the rollback path looks like.

When should we bring in an outside partner for this work?

Consider a partner when your team has no recent experience with index operations, when the platform is several versions behind, when you have many oversized shards, or when a regulated environment requires documented evidence of each step. A partner is also useful when your internal change windows are tight. Ask for a written scope that covers planning, the staging rehearsal, the production change, post-upgrade verification and handover documentation. DeployOpen implements, hardens, backs up, upgrades and documents self-hosted open-source platforms in your own infrastructure, so the work runs in your environment, and scope and deliverables are agreed in writing before work starts.

How DeployOpen scopes and delivers an OpenCTI rollover upgrade

DeployOpen approaches index rollover on an older OpenCTI platform as a written, staged change to the platform and its search indices. We confirm the current version and Elasticsearch or OpenSearch state first, then build the upgrade, policy, template and shard-split steps in a non-production copy before touching production. Engagements are fixed-scope, with scope and deliverables agreed in writing before work starts.

How we scope

  • Inventory the current OpenCTI version, the initialization version, and every index family in use.
  • Record the search backend version, node sizing and the largest shards against the 50 GB threshold.
  • Agree in writing which policies, templates, aliases and connectors are in scope and who signs off the change window.

How we build

  • Rehearse the platform upgrade and the shard split on a copy of the production data before any production change.
  • Check the rollover policy and index templates, then confirm write aliases point at the correct index after the split.
  • Keep a documented rollback path and verify queue drain and ingestion health at each step.

How we hand over

  • Deliver a runbook covering each step, its verification checks, and the commands used in your environment.
  • Document the final policy values, template contents, alias map and shard layout for your operations team.
  • Walk your platform and security teams through the results and record open items with owners.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover.
  • Plan the next OpenCTI release or LTS upgrade so policy and template checks are repeated with the same method.
  • Confirm with your team which monitoring signals and index size checks they will run between engagements.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.