Choosing Elasticsearch or OpenSearch for OpenCTI

OpenCTI accepts either Elasticsearch or OpenSearch, but the choice affects token authentication, file indexing, rollover permissions and licensing. This page explains how to decide and what to confirm before you build.

On this page

Choosing Elasticsearch or OpenSearch for OpenCTI: when the decision matters

OpenCTI supports both Elasticsearch and OpenSearch as its search engine, and the choice shapes authentication, file indexing, permissions and licensing. The search engine is one of the four core dependencies the platform documents, alongside Redis 7.1 or later, RabbitMQ 3.11 or later and S3-compatible storage such as MinIO. Elasticsearch 8.0 or OpenSearch 2.9 or later serves as the index layer for the platform's data, so the decision is not a cosmetic swap. You need to make it when you build a new environment, when you migrate an existing OpenCTI platform to new infrastructure, and when your organization already has an approved search engine that must be reused.

The engine setting drives several downstream choices. In OpenCTI, the engine_selector configuration key accepts auto, elk or opensearch, and elk is required when you use API key token authentication against the search cluster. Full-text search inside uploaded files depends on the engine version or on the ingest-attachment plugin, and file indexing is an Enterprise Edition feature. The integration user also needs index and cluster permissions, including ISM policy write and index template management, so the security team must review the role that OpenCTI runs under before it reaches production. Confirm each of these against the OpenCTI configuration docs for your release, because the supported combinations change across versions.

Licensing and support obligations differ between the two engines, and procurement and compliance teams should settle them before the build starts. OpenSearch is released under the Apache License, Version 2.0, and its FAQ does not describe a paid edition. Elasticsearch's default distribution is under the Elastic License 2.0, and Elastic's security features, including single sign-on and some field-level controls, sit in paid subscription tiers. Ask your compliance team which authentication, audit and encryption controls the approved engine must provide, ask procurement whether any subscription is needed, and confirm the engine's support and end-of-life dates for the version you plan to run. Those answers, not the engine name alone, determine the right choice.

Engine options for OpenCTI and when each fits

This table compares the three documented values of the engine_selector setting (auto, elk and opensearch), the distribution each points to, and what each requires. Read each row against your token authentication needs, your existing search estate and your licensing position, then confirm how auto resolves in the OpenCTI version you plan to run.

Engine_selector valueWhen it fitsWhat it requiresMain trade-off
autoTeams that want OpenCTI to detect the engine at startup and have no need to pin a specific distributionA reachable cluster that OpenCTI can identify; confirm in your version how auto resolves before relying on itBehavior depends on detection, so pinning a value makes the configuration easier to review and audit
elkDeployments that use Elasticsearch, including those that need API key token authenticationElasticsearch 8.0 or later as a dependency; elk is required when using API key token authenticationElasticsearch core security features such as SSO and field-level security sit in paid Elastic subscription tiers
opensearchDeployments that want an Apache 2.0 licensed search engine and a distribution with no paid editionOpenSearch 2.9 or later as a dependency, with the integration user set up for OpenSearchAPI key token authentication is documented against elk, so confirm whether your token method is supported with opensearch
Elasticsearch distribution (default license)Organizations already licensed for Elastic and standardized on Elastic toolingSubscription choice affects which security features are available; check the current Elastic tier for your needsSource code is under Elastic License 2.0 and SSPL, which are not OSI-approved; AGPLv3 is also offered
OpenSearch distributionOrganizations that prefer an OSI-approved stack with Security plugin features such as role-based access and audit logsInstallation through the supported methods, plus role and index permissions described in the rollover documentationVersion lifecycle follows OpenSearch maintenance rules, so plan upgrades on its release cadence

How engine_selector and API key tokens decide the engine

The engine_selector setting is the control point for this decision. OpenCTI accepts auto, elk or opensearch for this setting, and the rule that matters most is that elk is required when API key token authentication is used. A team that plans to give scripts, connectors or service accounts token-based access to the platform therefore has to plan for the Elasticsearch path from the start. Choosing OpenSearch first and adding API key tokens later is not a configuration change you can make in place. Confirm the accepted values and the token prerequisite in the OpenCTI configuration docs for the exact release you plan to run, because these settings can change between release lines.

If your organization already runs an OpenSearch estate, or has a standard that requires OpenSearch, you can still deploy OpenCTI on it, but the authentication design needs a check before you commit. Map every integration that authenticates to OpenCTI and decide whether each one can use a user-based login rather than an API key token. Also confirm how your identity provider and single sign-on set-up interact with the engine you select, since single sign-on is an Enterprise Edition feature in current OpenCTI releases. Ask your implementation partner or Filigran to confirm in writing which token and authentication paths work on the OpenSearch engine for your release, so the design rests on a documented answer rather than an assumption.

Treat the engine choice as hard to reverse. Once OpenCTI has indexed data, switching search engines means reindexing or migrating that data, along with the index templates and rollover policies that depend on the chosen engine. Write the decision down with its reason, the authentication methods it must support and the release it was tested against. Revisit it before each major platform upgrade, because the token requirement is a constraint on the engine, not a preference that can be overridden later.

How the search engine sits between the OpenCTI platform, workers and connectors

The diagram starts with the OpenCTI platform, which serves the UI and GraphQL API, and follows writes through RabbitMQ to the Python workers, which index into the search cluster. Connectors feed the platform and workers, while Redis and S3-compatible storage sit alongside. The integration user and its index permissions form the trust boundary around the search cluster, and file indexing reads uploaded files from storage. Check that the search cluster is reachable only by the platform and workers, and that the integration user holds only the permissions the documentation lists.

Components that touch the search cluster and the trust boundary around it.

Elasticsearch or OpenSearch licensing and support differences

The search engine you pick also picks a license, a support model and a governance structure. Each card below marks one of those differences and what your legal and procurement teams should confirm before the OpenCTI deployment is approved.

OpenSearch Apache License terms

OpenSearch software is released under the Apache License, Version 2.0, and the OpenSearch FAQ does not describe any paid edition. For OpenCTI, this means the search layer you deploy is not, by its own published terms, gated behind a commercial edition. Ask legal to confirm that Apache 2.0 obligations, such as license notices and attribution in your internal distributions, fit your packaging and redistribution practices. Confirm too whether any OpenSearch plugins or add-ons your team plans to use carry different terms.

OpenSearch FAQ

Elastic License 2.0 and alternatives

Elasticsearch's default distribution is under the Elastic License 2.0, which Elastic says it has used since 2021. Elastic also offers SSPL 1.0 and AGPLv3 options, with AGPLv3 added in September 2024 to provide an OSI-approved open source choice. ELv2 and SSPL are not OSI-approved. Ask legal which license option your organization is permitted to use, and whether the choice of distribution affects how you can host, modify or offer OpenCTI to third parties.

Elastic licensing FAQ

Elastic subscription tiers

Elastic's self-managed subscriptions page lists Free and open (Basic), Platinum and Enterprise tiers. Security features such as SAML and OpenID Connect single sign-on, field and document-level security, and FIPS 140-3 mode sit in paid tiers, and the page notes that Platinum is no longer available to new customers, who are pointed to Elastic Cloud. Ask procurement which tier covers the features your OpenCTI design needs, and whether a quote for a new subscription can include them.

Elastic subscriptions

Platinum tier closed to new customers

Elastic states that the Platinum tier is no longer available to new customers. An organization that expects to buy Platinum for Elasticsearch features, such as anomaly-based alerting, cannot rely on that path for a new deployment. Confirm with Elastic or an authorized reseller which current tier includes the security and alerting features you require, and ask for that tier in writing before the design is approved.

OpenSearch Software Foundation governance

The OpenSearch Software Foundation is a Linux Foundation project with a board that includes members such as AWS, IBM, SAP and Uber. The Foundation is not involved in technical oversight of the OpenSearch project. Procurement should record who governs the project's technical direction, and legal should decide whether a foundation-level governance model meets your vendor risk criteria. Confirm the support path you would use if a security fix is needed.

OpenSearch Foundation

Full-text file indexing: Elasticsearch version and plugin requirements

Full-text search inside uploaded files only works if your search engine meets a specific version or plugin requirement, and this affects the engine choice before any installation begins. OpenCTI needs Elasticsearch 8.4 or later for file content search. On older Elasticsearch releases, or on OpenSearch, the ingest-attachment plugin is the route to the same capability. File indexing is also an Enterprise Edition feature, so the engine decision and the license decision have to be made together rather than one after the other.

For the engine choice, this means a team that wants file content search has three realistic paths: run Elasticsearch 8.4 or later, run an older Elasticsearch with ingest-attachment, or run OpenSearch with ingest-attachment. Each path adds a plugin lifecycle to your patching plan if you take the plugin route. Check whether ingest-attachment is available and approved in your own distribution, whether it comes from your vendor's package, a private mirror or a build you maintain, and who signs off on installing it on nodes that handle threat intelligence files. In an air-gapped or regulated environment, the plugin may need to be staged through the same change process as the engine itself. Ask your engine provider or internal platform team to confirm this before you commit to a version.

Before you finalize the plan, confirm three things: the Enterprise license scope that covers file indexing in your organization, the exact Elasticsearch or OpenSearch version you intend to run, and whether the ingest-attachment plugin is approved for that version in your environment. Record each answer in the design document, because a later version upgrade can change the first two.

Rollover policy permissions for the OpenCTI integration user

OpenCTI's integration user needs indices_all on opencti* indices, plus cluster permissions that allow ISM policy writes and index template management. OpenCTI uses these to create and roll over its indices on a schedule, so the user must be able to manage the lifecycle policies and templates that govern those indices. In OpenSearch, the permissions are granted through roles and role mappings in the Security plugin, so the platform team defines a dedicated role and maps the integration user to it instead of reusing an administrator account.

  • Index permission: Grant indices_all only on the opencti* pattern so the user cannot touch unrelated indices on a shared cluster.
  • Cluster permissions: Add the ISM policy write and index template permissions that the rollover docs describe, and nothing beyond them.
  • Role mapping: Map the service account to the dedicated role through the Security plugin, and keep the mapping in version control if your team manages security configuration as code.
  • Broad grant option: A cluster admin role removes permission errors during early setup, but it also lets the integration user change every index and policy on the cluster.
  • Version check: Confirm the exact cluster permission names in the OpenSearch version you run, since names can change between releases.

Before go-live, confirm with a test rollover that the scoped role works, and record which permissions were added and why.

Setting up OpenCTI with Elasticsearch or OpenSearch

This sequence takes a team from the chosen OpenCTI release to a running search backend that the platform reports as healthy. Each step ends with a check you can run, so problems surface before data is loaded.

  1. Confirm the release and dependency versions

    Before touching configuration, record the OpenCTI version you plan to run and check the dependency versions it documents, including the minimum Elasticsearch 8.0 or OpenSearch 2.9 requirement. Decide whether you need a regular release or an LTS line, since LTS releases require a specific license key. Done when you have a written version matrix that your platform owner has approved. Ask Filigran or your DeployOpen contact to confirm the exact pairing for your target release before procurement.

  2. Choose the engine and set engine_selector

    Pick Elasticsearch or OpenSearch based on your licensing review, your support model and the token authentication you need. The engine_selector setting accepts auto, elk or opensearch, and elk is required if you plan to use API key token authentication. Set the value explicitly in the platform configuration rather than relying on auto, so the choice is recorded in version control. Done when the configuration file holds one explicit value and the platform starts without engine errors in its logs.

  3. Create the integration user with documented permissions

    Create a dedicated integration user in the search cluster. It needs indices_all on opencti* indices, plus cluster permissions that include ISM policy write and index template management, as the rollover documentation describes. Keep this account separate from administrator and human accounts, and record who approved the role. Done when a test authentication with that user succeeds and a request against an opencti index is allowed, while a request outside the opencti* pattern is denied.

  4. Configure TLS and credentials

    Enable TLS for node and client traffic, install the certificates your security team issues, and store the integration user's credentials in your secrets manager rather than in plain configuration files. Confirm that the platform trusts the cluster certificate chain. Done when a connection check from the platform host completes over TLS with certificate verification enabled, and no credential appears in container images, shell history or logs.

  5. Enable file indexing if the license covers it

    Full-text search in uploaded files needs Elasticsearch 8.4 or later, or the ingest-attachment plugin on older Elasticsearch or on OpenSearch. File indexing is an Enterprise Edition feature, so confirm your license includes it before enabling it. Verify the plugin is installed on every search node if you use it. Done when the plugin list on the cluster shows the attachment processor, or when your license review records that file indexing is out of scope for this deployment.

  6. Start the platform and confirm index creation

    Start the platform with the new configuration and watch the startup logs for index creation messages. Then list the indices on the cluster and confirm that opencti indices exist with expected names and that their health is green or yellow for a single-node test cluster. Done when the index list shows the OpenCTI indices and the platform reports the search engine as healthy in its administration view.

  7. Verify rollover and index templates

    Check that the index templates and ISM policies were created by the integration user and that rollover aliases point to the current write index. Trigger a small test write, such as a sample entity, and confirm it lands in the expected write index. Done when the template list includes the OpenCTI templates, the rollover alias resolves to a single write index, and the test entity is searchable from the platform.

  8. Record the baseline and schedule re-verification

    Save the cluster version, engine_selector value, integration user role definition, plugin list and index template names in your change record. Repeat the index and rollover checks after every OpenCTI upgrade and every search engine upgrade, since both can change permissions and templates. Done when the baseline record is stored with your platform documentation and the owner of the re-verification step is named.

Security and operations for the search layer

The search engine holds every indexed OpenCTI object, so its access, transport, logging, patching and recovery need the same planning as the platform itself. The cards below cover the decisions that most often get left at defaults, and each one names what to confirm for the exact engine version you deploy.

Scope the integration user

OpenCTI connects to the engine with an integration user that needs indices_all on opencti* indices plus cluster permissions for ISM policy writes and index template management. Create a dedicated user for this purpose rather than reusing an administrator account, and review whether the cluster-level grants can be narrowed for steady-state operation. Confirm the exact permission set in the rollover documentation for your engine version before you write the role.

OpenCTI rollover docs

Encrypt node and client traffic

Enable TLS for transport between engine nodes and for client connections from the OpenCTI platform and workers. Because OpenCTI stores threat intelligence that may be sensitive, plaintext traffic inside a shared network is a gap that auditors and security reviewers commonly raise. Confirm the certificate chain, the trust store used by the OpenCTI configuration, and the TLS settings that your chosen engine version supports.

OpenSearch security docs

Log search access and set retention

Turn on audit logging in the engine so that reads, writes and administrative changes to OpenCTI indices are recorded. Decide where those records go, who can read them, and how long they are kept, and align that period with your organization's investigation and compliance needs. On Elasticsearch, confirm which audit logging features sit in the tier you license, because the subscription tiers differ.

Map roles and document-level controls

Both engines offer role-based access control, and OpenSearch Security also provides document-level and field-level security, field masking and user impersonation. Map these to your OpenCTI groups so that analysts see only the data they are cleared for. On Elasticsearch, field- and document-level security and single sign-on sit in paid tiers, so confirm your subscription covers them before you design the access model around them.

Plan patches against support dates

Set maintenance windows based on each engine's published lifecycle rather than on ad hoc upgrades. OpenSearch maintains versions with bug and security fixes but no new features during maintenance, and Elastic publishes end of maintenance dates for each major line. Check the current support table for your version, and plan the OpenCTI compatibility test before each engine upgrade so the platform and engine move together.

Elastic EOL dates

Back up and test index recovery

Configure snapshot repositories for the OpenCTI indices and schedule them outside peak ingestion periods. A snapshot that has never been restored is not a recovery plan, so run a restore into a separate cluster on a fixed schedule and time it. Confirm how snapshots interact with the rollover and ISM policies that OpenCTI manages, because restoring indices with mismatched policy state can cause ingestion problems.

Elasticsearch or OpenSearch for OpenCTI: questions buyers ask before hiring help

Does OpenCTI work with OpenSearch, or does it require Elasticsearch?

Yes, OpenCTI can use either engine. The engine_selector setting accepts auto, elk or opensearch, so the platform is configured for the engine you run. The exception is API key token authentication, which requires elk. Check the setting against your planned authentication model before you choose an engine, because that single constraint can decide the question. Your dependency version also matters: the platform documentation lists Elasticsearch 8.0 or OpenSearch 2.9 or later. Confirm the exact versions in the OpenCTI configuration documentation against the release you plan to deploy.

Does API key token authentication force us to use Elasticsearch?

Yes. OpenCTI's engine_selector setting requires elk when API key token authentication is used, so an OpenSearch-only deployment cannot use that method. The practical question is whether your organization needs API keys for integrations, automation or service accounts, or whether another credential pattern covers those needs. A partner would review integration inventory, identity policy and the Elastic licensing position before recommending a path. Elastic's current licensing terms, including the Elastic License 2.0 and AGPLv3 options described in the Elastic licensing FAQ, should be reviewed by your legal or procurement team, since they affect redistribution and hosting decisions.

What does full-text file indexing require from our search engine?

Full-text search inside uploaded files needs either Elasticsearch 8.4 or later, or the ingest-attachment plugin on older Elasticsearch releases or on OpenSearch. File indexing is also an Enterprise Edition feature, so the license scope is part of the decision. Plan these items together:

  • Engine version and whether the ingest-attachment plugin is approved for your environment
  • Enterprise Edition license terms and who signs them
  • Expected document volume and types, which drive index size and ingest load
  • Whether file content may be indexed under your data handling rules

Ask any partner to confirm each item against the OpenCTI file indexing documentation before quoting.

Which permissions does the OpenCTI integration user need in the search engine?

The integration user needs indices_all on opencti* indices, plus cluster permissions that include ISM policy write and index template management, according to the OpenCTI rollover documentation. These permissions are broad for a service account, so the security review usually centers on scoping them to the OpenCTI index pattern, limiting who can read the credentials, and logging administrative changes. Ask your team to confirm whether your security policy allows index template and policy management by a service account, and whether an administrator will apply those changes outside the application. Document the decision for your compliance evidence.

How much effort does switching from Elasticsearch to OpenSearch take?

Effort depends on whether the switch is a fresh deployment or a migration of existing data. A new deployment mainly requires configuring engine_selector, provisioning the cluster and verifying the integration user's permissions. Moving a live instance is larger work: it involves data migration, index and policy recreation, re-validating searches and file indexing, and a cutover plan. OpenSearch documents migration and upgrade paths, including its Migration Assistant, which is useful context for scoping but does not replace an OpenCTI-specific test. No duration can be stated here. Request a quote that breaks effort into discovery, configuration, data movement, validation and rollback, and ask for each phase's exit criteria.

What should a consultant need from us before scoping an engine decision?

A partner needs enough detail to price the work accurately. Gather these inputs first:

  • Current search engine, version and whether it is self-managed or a cloud service
  • Authentication plan, including whether API keys or SSO are required
  • Enterprise Edition status or intent, and whether file indexing is needed
  • Expected data volume, retention rules and the number of workers and connectors
  • Hosting constraints, such as air-gapped networks or regulated regions
  • Existing licensing agreements with Elastic or other vendors, plus your procurement process

With these inputs, a written scope can state what is included and what is excluded, which is the basis for any fixed-scope quote.

Can our own team choose and run the search engine without outside help?

Often yes, if your team already runs Elasticsearch or OpenSearch in production and has the time to validate OpenCTI-specific requirements. The work that tends to need outside experience is the combination of decisions: engine selection against authentication and licensing, index lifecycle policy, permission design and the upgrade path for both OpenCTI and the search engine. Confirm your team's capacity by listing who would own the cluster, who would test upgrades, and who would sign off on licensing. If those roles are unclear, an external review of the design can cost less than correcting a poor early choice. DeployOpen can plan, implement and document these deployments in your infrastructure on a fixed scope.

What recurring costs follow the engine choice?

Recurring costs come from running the cluster, licensing and support. The search engine nodes, storage and backups recur every month and grow with data volume and retention. Licensing differs by product: OpenSearch's software is under the Apache License, Version 2.0, while Elastic's default distribution uses the Elastic License 2.0, and some Elastic features sit in paid subscription tiers. Ask any vendor or partner to show which features your design needs, then price each one. Upgrades recur as well: confirm the supported versions and end-of-life dates for the engine you choose in its official lifecycle pages before you commit.

Limits to confirm in your environment before you choose

The engine choice depends on facts that change between releases, licenses and vendor support windows. Each card below names one item to confirm with OpenCTI, the engine vendor, your procurement team or your own environment before you commit to a build.

Exact OpenCTI release and engine versions

Confirm which OpenCTI release you will run and which Elasticsearch or OpenSearch versions that release supports. Dependency minimums such as Elasticsearch 8.0 or OpenSearch 2.9 or later are a floor, not a compatibility matrix, so ask Filigran for the tested pairing for your release. Record the pairing in your change plan, since LTS and regular release lines move on different schedules.

Deployment overview

Enterprise scope for file indexing and SSO

Confirm which features need the Enterprise Edition license before you design the search tier. File indexing and SSO are Enterprise Edition features, so the engine choice does not remove a license dependency. Ask Filigran in writing which license tier covers full-text file search, the cost of that tier and whether trial or free licenses apply to your use.

Enterprise Edition docs

Support end dates for candidate versions

Check the end of maintenance date for each engine version you plan to run for the life of the deployment, not only the version you install on day one. Both vendors publish lifecycle policies that differ in how they count support, so compare the dates in their current pages. A version that ends support during your planned operating window adds an upgrade project you should budget for now.

Elastic end of life dates

Managed service plugins and permissions

If you consider a managed service, confirm that it exposes the integration user permissions OpenCTI needs, including index access on the opencti indices and the cluster permissions for ISM policy writes and index template management. Also confirm that the required file indexing plugin is available if you plan to use it. Managed offerings often restrict cluster-level settings, so test these permissions on a non-production domain first.

OpenCTI rollover docs

Engine license approval in procurement

Confirm with your procurement and legal teams which license your policy accepts for the engine. OpenSearch is released under the Apache License, Version 2.0, while the default Elasticsearch distribution uses the Elastic License 2.0, which is not an OSI-approved open source license. Also confirm whether features you need sit in a paid tier of the chosen engine, since security features have historically moved between tiers.

Elastic licensing FAQ

Behavior of engine_selector auto

Do not rely on the auto value of the engine_selector setting without testing it in your release. The setting also accepts elk or opensearch, and elk is required for API key token authentication. Set the value explicitly in your configuration, then confirm in a staging environment which engine the platform detects and that token authentication works as your design expects.

Configuration docs

How DeployOpen scopes and delivers this search engine decision

DeployOpen plans the Elasticsearch or OpenSearch decision as part of a written, fixed-scope engagement, so the engine, its licensing and its access model are settled before installation. The work covers configuration, permissions, file indexing needs, upgrade planning and handover inside your own infrastructure.

How we scope

  • Confirm which OpenCTI edition, token method and file indexing needs drive the engine choice.
  • Document the required engine_selector setting and the authentication method it must support.
  • Agree in writing which search engine version, hosting model and managed service options are in scope.

How we build

  • Configure the search engine and OpenCTI integration user with the permissions the rollover policy requires.
  • Test file indexing behavior against the chosen engine and version before enabling it for users.
  • Verify indices, index templates and rollover policies in a staging environment before production cutover.

How we hand over

  • Deliver a written record of the engine decision, configuration values and the reasons behind each choice.
  • Provide the integration user permission matrix and a checklist for reviewing it after each change.
  • Document the upgrade path and the vendor lifecycle dates your team must track for the chosen engine.

How we support

  • Offer ongoing support, upgrades and continuous testing for the search layer as a retainer.
  • Retest permissions and configuration after OpenCTI or search engine upgrades, as agreed in scope.
  • Confirm with your team which support boundaries, response arrangements and evidence formats apply before work starts.

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.