Open-source alternative to Elastic machine learning anomaly detection

Elastic's anomaly detection jobs and the alert rules built on them need a paid tier. This page maps them to the anomaly detection and alerting plugins in Apache-2.0 OpenSearch, with the gaps you must confirm and rebuild.

On this page

How an open-source alternative to Elastic machine learning anomaly detection works

A team whose anomaly detection jobs and alert rules depend on a paid Elastic tier can expect OpenSearch to cover much of the same workflow, but not all of it without rework. OpenSearch is released entirely under the Apache License 2.0, and its OpenSearch FAQ does not describe a paid edition. It ships its own anomaly detection and alerting plugins, so detectors, monitors and notification routes can be recreated on a cluster you run yourself. Model behavior, scoring thresholds and alert logic must be verified against your own data before anyone relies on the results.

What usually translates cleanly is intent: the index or data source being watched, the fields and time window feeding each detector, and the people or channels that receive notifications. Confirm that the detector types, aggregations and alert destinations you use exist in the OpenSearch version you plan to run, because plugin behavior changes across minor releases (see the OpenSearch releases page for current versions). What typically needs rebuilding is anything tied to Elastic's trained model state, job history and ML result indices, plus Kibana alerting rules and their connectors, which must be recreated as OpenSearch Dashboards objects. Elastic's snapshot documentation also notes that restored indices must be compatible with the target version, so do not assume job state will carry across.

The answer depends on which Elastic features your team actually uses. If you run basic detectors on logs, the replacement is mostly configuration and validation. If you depend on Elastic-specific model features or cross-cluster jobs, plan a separate evaluation, since OpenSearch's plugins are not a drop-in copy of those capabilities. Access control moves with the workload: the OpenSearch Security plugin provides role-based access control, audit logs and TLS, so detector and monitor permissions should be mapped to roles before cutover. Ask for an inventory of every job, datafeed and alert rule with its owner and downstream consumer, then run old and new detectors side by side over an agreed period and compare their alerts.

Which Elastic anomaly detection capabilities map to OpenSearch anomaly detection

This table pairs each Elastic anomaly detection capability with the OpenSearch plugin that appears to cover it, along with what you must verify. Read the coverage notes as a checklist, not a parity claim: the supplied facts confirm Apache-2.0 licensing and the OpenSearch Security plugin features, but not the detailed behavior of the anomaly detection and alerting plugins. The main takeaway is that the security and licensing side maps cleanly, while detector logic and alert rules need hands-on validation.

Elastic capabilityOpenSearch optionCoverage notes to confirm
Job creation on time series dataAnomaly detection plugin (Apache-2.0)Confirm in the current OpenSearch plugin docs which data sources, index patterns and time fields your detectors support, and whether your Elastic jobs use features with no direct equivalent.
Detector configurationAnomaly detection plugin detector definitionsCompare each Elastic detector's function, field and bucket settings with the OpenSearch detector options. Rebuild any custom settings and validate scores on historical data.
Anomaly scoring and results storageAnomaly detection plugin result indicesConfirm where results are stored, how they are retained and queried, and whether scores match Elastic on the same data. Expect some tuning differences and plan a parallel run.
Alerting on anomaliesAlerting plugin monitors triggered by anomaly resultsConfirm that monitors can read anomaly results and the trigger conditions you need. Elastic alerting rules tied to anomaly thresholds usually need rewriting, not copying.
Notification channelsNotifications plugin channelsConfirm which destinations you use (email, chat, webhook, ticketing) are supported and how credentials are stored. Test each channel end to end.
Role-based access to jobs and resultsSecurity plugin roles, document-level and field-level securityDocument-level and field-level security and field masking are documented in the Security plugin. Map your Elastic roles and confirm they apply to anomaly indices and dashboards.
Audit loggingSecurity plugin audit logsAudit logs are documented in the Security plugin. Confirm which events you need for review, where logs are written and how they reach your SIEM.
TLS and authenticationSecurity plugin TLS and SAML, OpenID Connect, LDAP or Active Directory backendsTLS for node and client traffic and these authentication backends are documented. Confirm your identity provider setup and certificate management match your policy.

Which OpenSearch option fits your anomaly detection workload

Elastic's anomaly detection and the alerts built on it sit behind a paid tier, so the replacement question is which open-source piece covers each job. The options below range from fully Apache-2.0 plugins inside OpenSearch to keeping Elastic software under a subscription or an external alerting stack. Each card names the trade-off and what to test in a proof of concept before you commit.

OpenSearch Anomaly Detection plugin

This plugin runs detectors over indexed data to flag unusual values in time series, and it is the closest functional match to Elastic's anomaly detection jobs. It ships in the Apache-2.0 OpenSearch distribution, so there is no paid feature gate to clear. Check that your detector types, aggregation functions, feature definitions and model memory needs map to what your Elastic jobs use today. Confirm the exact detector options and result index layout against the plugin docs for your target version, since detailed plugin behavior is not covered by the project-level facts here.

OpenSearch security docs

OpenSearch Alerting plugin with monitors

Alerting monitors evaluate queries or detector results on a schedule and send notifications when conditions are met. This is where Elastic alerting rules built on anomaly scores usually need rebuilding, because monitor definitions and destinations are not a one-to-one copy of Elastic rule objects. Validate that a monitor fires on a known anomaly, that the notification channel reaches the on-call tool you use, and that alert suppression behaves the way your team expects during noisy periods. Confirm the trigger and action syntax for your OpenSearch version.

OpenSearch Dashboards for visualizing results

OpenSearch Dashboards derives from Kibana 7.10.2, so the visual layer for anomaly results is a rebuild rather than a direct move of Kibana objects. Anomaly timelines, overlays and saved dashboards need to be recreated and checked against the same data. Compare the dashboards your analysts rely on with what the Dashboards version offers, and list any visualization that depends on a paid Kibana feature so you know what to drop or replace. Plan this work alongside the alert rebuild, since operators will judge the replacement by what they see.

OpenSearch FAQ

Elastic under a self-managed subscription

Keeping Elastic software avoids rebuilding detectors and alerts, but the features you depend on may require a paid self-managed subscription on every cluster. Ask Elastic which anomaly detection and alerting capabilities your current tier includes, and whether a Basic or AGPLv3 distribution covers them. Compare the subscription cost against the operating work of an OpenSearch rebuild, and check that snapshot and upgrade procedures still work for the Elastic version you run. This option keeps the lock-in you are trying to leave, so weigh it as a bridge rather than an endpoint.

Elastic licensing FAQ

External alerting stack fed by exported results

Anomaly results can be exported from the cluster and evaluated in a separate alerting system you run yourself. This decouples alert logic from the search engine, which helps if your alerting rules change more often than your data platform. The cost is an extra component to secure, monitor and keep in sync with the detector output. Test the export path end to end, confirm that timestamps and anomaly grades arrive in the same form, and measure how long a missed export would take to surface. Confirm the export method with your OpenSearch version before designing around it.

Which anomaly detectors translate cleanly and which must be rebuilt

Some jobs depend only on fields that exist in both stacks: a single metric or count function, a split on a small number of keys and a fixed bucket span. These can be recreated in the OpenSearch anomaly detection plugin with the same source index, field names and time settings, so the detector logic is the easy part. Most of the effort sits in the data path and the output format.

  • Single metric detectors: Mean, sum or count over one numeric or count field usually map directly once the field names match the index mapping.
  • Stable time field and bucket span: Confirm the timestamp field, time zone handling and bucket interval are identical before comparing any results.
  • Documented job settings: Export the full job configuration, including analysis limits and split fields, so the OpenSearch detector is created from the same specification.
  • Inputs that arrive complete: Detectors reading indices moved by reindexing or Migration Assistant need the source data to be complete and in the same time order.

Place a job in this group only after a side-by-side run on the same historical window confirms that its scores line up.

How data, detectors and alerts flow through the OpenSearch stack

The diagram starts with application and log sources sending events into OpenSearch indices inside the client's own network. An anomaly detector reads those indices and writes its results to a results index, and an alerting monitor evaluates those results and sends notifications to channels such as email, chat or a webhook. OpenSearch Dashboards then shows the results to analysts. The Security plugin's authentication, role-based access and audit logs apply at each hand-off, so check that each component uses its own least-privilege role and that every read and write is logged.

Data, detectors and alerts flow inside the client's network, with Security plugin controls applied at access points.

Running OpenSearch detection alongside the rest of your Elastic estate

Few organizations move every Elastic workload at once. Detection often moves first, while logs, dashboards and other clusters stay where they are for a period. The cards below cover what to keep, what to move, how alerts and identity connect across both platforms, and what must be tested before any duplicate alert is switched off.

Keep out-of-scope workloads on Elastic Cloud

Not every index or cluster needs to move with anomaly detection. Inventory which indices, Kibana spaces and cross-cluster searches depend on Elastic Cloud and which ones only feed the detection jobs you are replacing. Workloads outside that set can stay on Elastic Cloud until their own migration decision is made. Confirm with Elastic which subscription features those clusters rely on so the remaining bill is understood.

Run both platforms for a comparison period

A parallel run lets you compare detector output from the Elastic machine learning jobs with the OpenSearch detectors on the same log data. Agree in writing how long the comparison lasts, which detectors are in scope, and what counts as a match, such as the same time window flagged within an agreed tolerance. Record false positives and missed anomalies on both sides before deciding which detectors to retire.

Route detection alerts into existing on-call tools

OpenSearch alerting can send notifications to destinations such as webhooks or chat channels, but your ticketing and paging systems may need a different path. Map each Elastic alert action to an equivalent OpenSearch destination and confirm that severity, deduplication keys and acknowledgement behavior survive the change. Check the destination configuration in your own environment, since supported channel types depend on the version you deploy.

Share identity through SAML, OIDC or LDAP

Analysts should sign in to OpenSearch Dashboards with the same directory identity they use for Kibana. The OpenSearch Security plugin supports SAML, OpenID Connect, Active Directory and LDAP backends, so confirm which one matches your identity provider and that group-to-role mappings reproduce the access Elastic currently grants. Test deprovisioning as well, because a removed user must lose access to both platforms.

OpenSearch security docs

Check log shipping and index naming first

Detectors only see what reaches the cluster under the expected index pattern. Before any detector is enabled, confirm that the same agents, pipelines or Beats configurations write to OpenSearch as well as Elastic, and that index names and field mappings match what the detector expects. A renamed field or a dropped pipeline can make a detector silently stop firing, so verify event counts per index on both sides.

Test cross-platform alerting before turning off duplicates

Do not disable Elastic alerts until OpenSearch alerts have been tested end to end. Use controlled test events that should trigger each rule, confirm the alert reaches the same responders, and confirm that closing or acknowledging an alert in one tool updates the other as your process requires. Keep a rollback step documented so duplicate alerting can be restored quickly if a gap appears.

What drives the cost of running anomaly detection yourself

The main cost of running anomaly detection on OpenSearch is the people and nodes that keep detectors working, not the software licence, which is Apache License 2.0 with no paid edition. Expect four recurring cost lines: infrastructure for the OpenSearch data nodes that run detector queries, storage for indices and retained detection results, staff time to tune detectors, and upgrade work across the minor releases that arrive about every eight weeks. Infrastructure and storage scale with the number of detectors, the cardinality of the fields they split on, the detection interval and how long results are kept. Staff time scales with how many detectors need tuning for false positives, which usually depends on how well your Elastic jobs were documented. Confirm the current release cadence and maintenance windows on the OpenSearch releases page before you set an upgrade budget.

The largest one-time cost is the rebuild. Elastic's anomaly jobs, datafeeds and the alerting rules that consume their results do not carry over automatically, so each job has to be recreated as an OpenSearch detector with its own feature definitions, and each alert has to be recreated against the new results. Dashboards are a separate line item. Parallel running is also one-time but often underestimated: you need enough time for both systems to score the same data so you can compare alert volumes and miss rates before cutover. Ask any implementation partner for a written scope that lists every Elastic job and alert, the detector mapping for each, the test cases and comparison window, and the evidence delivered at handover, such as a per-detector reconciliation report, retest results and the configuration exported as code. Without these items, a quote cannot be compared with your own estimate.

Check three things in the quote. First, whether rebuild effort is priced per detector, per alert or per dashboard, and whether tuning after cutover is included or billed separately. Second, who runs the security configuration: role mapping, audit logging and SSO through the OpenSearch Security plugin all need review by your identity and compliance teams, and that review adds time. Third, whether the partner offers a retainer for upgrades and continuous testing, since that is the recurring cost most often left out of first proposals. Your own staff cost is the balance of these lines. Model it as an illustrative table with one row per detector, one per alert and one per upgrade cycle, and treat any figure a vendor gives you as an assumption to verify against your own job count.

Moving anomaly detection jobs and alert rules without the snapshot shortcut

This sequence moves Elastic anomaly detection jobs and their alert rules to OpenSearch in controlled stages, so each detector and notification has a named owner and a recorded check before the Elastic side is switched off.

  1. Inventory jobs, rules, connectors and source indices

    Export every anomaly detection job, its datafeed configuration, each alerting rule that depends on it, and every connector that delivers notifications. List the indices each job reads and record which team owns each alert. Confirm the exact export format and any Platinum or Enterprise features in use with Elastic's documentation and your subscription terms. Done when every job and rule has a row in a signed inventory with an owner and a list of source indices.

  2. Confirm the source version and data path

    Identify the exact Elasticsearch or Elastic Cloud version that holds the data. Elastic's documentation states that a snapshot cannot be restored to an earlier version and that restored indices must be compatible with the target version, so a snapshot restore into OpenSearch should not be assumed to work. OpenSearch can use indices from Elasticsearch 6.0 through 7.10, so newer source data needs reindexing or the migration path in OpenSearch's migration documentation. The data owner signs off on the chosen path. Done when the path for each index is written down.

  3. Stand up OpenSearch with SSO and roles

    Deploy OpenSearch and OpenSearch Dashboards in your own infrastructure using one of the documented install methods. Configure the Security plugin with your identity provider (SAML, OpenID Connect, LDAP or another supported backend), map groups to roles, and enable TLS for node and client traffic and audit logging. The security team reviews the role mapping against the inventory from the first step. Done when test users can see only the indices their role allows and audit entries appear for their logins.

  4. Move source data into the target indices

    Reindex the source indices into OpenSearch, or backfill them through the path described in the migration documentation, then confirm document counts and sample field mappings against the source. Field types that differ between versions are recorded and corrected before any detector is built. The data owner accepts the copy when counts and a sample of records match. Done when each index has a reconciliation record.

  5. Recreate detectors and monitors

    Rebuild each anomaly detector and the alerting monitors that depend on it in OpenSearch's anomaly detection and alerting plugins. Translate the detector interval, features, categorical fields and thresholds from the inventory. Mark any rule that has no direct equivalent as a rebuild item with a named owner, not a silent omission. Done when every inventory row maps to a detector or monitor, or to a documented gap.

  6. Run both systems in parallel and compare alerts

    Feed the same data to Elastic and OpenSearch for a period agreed in the test plan, and log every alert each system raises. Review differences with the owners: missing alerts, extra alerts, and alerts that fire with different severity or timing. Adjust detectors and thresholds until the agreed acceptance criteria are met. Done when the comparison log is signed by the alert owners and each difference is resolved or accepted.

  7. Cut over notifications

    Point each notification channel to OpenSearch's destinations one at a time, starting with the lowest-impact alerts. Test delivery to every recipient, confirm the on-call escalation path, and keep the Elastic connector active as a fallback until the cutover is accepted. Done when each channel has delivered a test alert to the intended recipients and the on-call lead confirms the escalation.

  8. Retire Elastic jobs after documented sign-off

    Disable the Elastic anomaly detection jobs and alert rules, retain the exported configuration and comparison logs under your records policy, and close the Elastic subscription or instance only after the sign-off form is complete. The sign-off names the data owner, alert owners and security lead. Done when the sign-off record, retained exports and decommission ticket are filed together.

What happens to anomaly history and model results during the move

Plan on the assumption that historical anomaly results and detector state will not carry over with the same meaning. Elastic's machine learning jobs store model state, bucket results and influencer scores in Elastic's own indices, and OpenSearch's anomaly detection plugin builds its detectors and results on its own storage and modeling. Before the move, decide what the business needs from the old history: keep the Elastic cluster running read-only for audit, export results as flat records that any reviewer can open without a cluster, or accept a fresh baseline in OpenSearch after a learning period. These options can be combined per job, and the choice should be recorded per detector, since a fraud or payments monitor and a low-value infrastructure metric rarely carry the same retention need.

The snapshot rules decide what is physically possible. Elastic's documentation states that a snapshot cannot be restored to an earlier version of Elasticsearch and that any restored index must be compatible with the target cluster's version. OpenSearch can use indices from Elasticsearch 6.0 through 7.10, so a current Elastic snapshot will not simply restore into OpenSearch. Confirm with your Elastic contact which version your cluster runs and whether the result indices are included in your snapshot policy, then test a restore of a sample set into a non-production OpenSearch cluster before you rely on that path. The Elastic snapshot and restore documentation is the reference for these rules.

Regulated retention changes the order of work. Keep the Elastic cluster or a verified export available until the records you must retain for audit or examination are readable outside it, and confirm the retention period, the format your reviewers accept and who signs off on the export with your compliance team. Before deleting any Elastic indices, snapshot repository or license-bearing cluster, confirm with the vendor what billing and access remain after cancellation, and in your own environment verify checksums, record counts and a sample of anomaly scores against the source. Deletion should be the last step, after the retained evidence has been reviewed.

What does it cost and take to replace Elastic anomaly detection with OpenSearch

How much effort does rebuilding Elastic anomaly detection in OpenSearch take?

The effort depends mostly on how many anomaly jobs, datafeeds and alerting rules you run, and how many of them depend on Elastic-specific model behavior. Each job needs its detector settings, bucket span, influencers and data feed mapped to an equivalent OpenSearch detector or rebuilt as a query-based monitor. Teams with a small, well-documented job set usually finish faster than teams with dozens of jobs tied to custom scripts, notifications and dashboards. Ask any provider for an inventory of jobs, rules and connected integrations, and a written breakdown of which items translate directly and which need rebuilding. No fixed duration is stated here because it depends on that inventory.

Can an internal team replace Elastic anomaly detection without outside help?

An internal team can do it if it has people who know OpenSearch administration, the Security plugin and the detector and alerting model, and if it has time to test each rebuilt job against real history. The harder parts are usually access control, alert routing and proving that the new setup behaves correctly under audit. Many teams find that the skills gap sits in one or two people rather than the whole group. Before deciding, list who will own cluster operations, detector tuning and sign-off, and check whether those roles already exist. Outside help is most useful for a fixed-scope review of the inventory and for testing the rebuilt detectors.

How long should a parallel run of old and new anomaly detection last?

The parallel run should last long enough to cover the business cycles that produce your normal patterns, such as month-end volume, weekly batch jobs and seasonal traffic. Its length is set by how often those cycles recur, how many alert types you need to compare, and how much tolerance your security and operations teams have for missed or duplicate alerts. Agree on exit criteria in advance, such as a documented review of each alert class and sign-off from the owners of each rule. Ask for the proposed run length and the criteria in writing, and treat any fixed number as something to confirm against your own calendar.

What does the work need from security, data and operations staff?

Security staff need to review the Security plugin configuration, role mappings, audit logging and how alert notifications reach people, because those settings control who can see anomalies and detector definitions. Data staff need to confirm index mappings, field names, time fields and retention, since detectors depend on them. Operations staff own cluster sizing, node patching, backup and upgrade windows. OpenSearch maintains versions with security patches during maintenance, so someone must own the upgrade calendar. Ask the provider which of these tasks they carry out, which they only review, and which stay with your team.

Do OpenSearch detectors produce identical results to Elastic machine learning jobs?

No, you should not expect identical results. Elastic machine learning and OpenSearch anomaly detection use different models, and their scores, thresholds and handling of sparse data will not match one for one. What you can check is whether the new detectors flag the same known incidents and suppress the same known noise over a comparison period. Record the expected anomalies from your history, run both systems against that data, and document each difference with a decision on whether it is acceptable. Treat any claim of exact parity with suspicion until your own data confirms it.

What happens to existing anomaly alert history when you switch?

Alert history stored in Elastic does not move automatically to OpenSearch, so it needs a deliberate plan. If you must keep it for audits or investigations, export or snapshot it before the subscription changes and store it in a repository you control. Note that a snapshot cannot be restored to an earlier version of Elasticsearch, and any restored index must be compatible with the target cluster's version, so confirm the version path before relying on a restore. Ask the provider to describe how history will be retained, where it will be queried, and who can access it after cutover.

What should a fixed-scope written agreement cover for this work?

A fixed-scope agreement should list the inventory of jobs and rules in scope, the target OpenSearch version and deployment method, the detectors and monitors to be rebuilt, the comparison method and exit criteria for the parallel run, and the handover items such as runbooks and configuration. It should also name who signs off each rule, what testing evidence is delivered and how retesting works. Deliverables and timelines should be agreed in writing before work starts, and any quote should follow from that written scope. Ask for the exclusions in writing too, such as dashboard rebuilds or unrelated integrations.

How DeployOpen scopes and delivers an anomaly detection replacement

DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure. For an anomaly detection replacement on OpenSearch, that means agreeing in writing which detectors, alerting rules and dashboards move, and building them in your cloud account, data center or air-gapped network.

How we scope

  • Inventory every Elastic anomaly detection job, its input indices, bucket span and the alerting rules that consume its results.
  • Mark each detector as translating directly, needing rebuild or being dropped, so the written scope names exactly what changes.
  • Agree the target OpenSearch version, deployment method and the Security plugin roles that will own detectors and alerts.
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we build

  • Deploy the OpenSearch cluster with TLS, role-based access control and audit logging enabled from the first node.
  • Recreate detectors and monitors against replayed or reindexed data, then compare alert behavior with the Elastic baseline.
  • Integrate alert routing with your existing paging, ticketing and chat tools and test notification paths end to end.
  • Run security testing on the anomaly detection setup, including access to detector and alert configuration.

How we hand over

  • Deliver written documentation of each detector, its thresholds, owners and the reasoning behind any rebuilt logic.
  • Document backup of cluster state and snapshot repositories, plus the steps to restore them in your environment.
  • Provide a list of Elastic features that were dropped or replaced, so your risk and compliance teams can review the change.
  • Walk your operations staff through upgrades, maintenance releases and how to add or retune detectors afterward.

How we support

  • Support, upgrades and continuous testing are available as retainers after handover.
  • Upgrades follow the OpenSearch release cadence, and we confirm each target version against the maintenance policy before changing production.
  • Retainers can include periodic security retesting of alerting and access configuration as your detectors change.
  • Ask any provider to confirm response times, upgrade windows and who holds administrator credentials before signing.

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.