OpenSearch forecasting for time-series data

OpenSearch forecasting predicts future values of a time-series field with the Random Cut Forest model, which learns incrementally and needs little storage per model. This page covers when to use it, how to configure and pair it with alerts, and what to confirm before rollout.

On this page

When OpenSearch forecasting answers a capacity or traffic question

OpenSearch forecasting answers the question of where a time-series metric is heading, such as disk use on a data node, indexing volume, query traffic or a business figure stored as a timestamped field. If your team already writes that data into OpenSearch, you can predict the next stretch of values inside the same cluster instead of exporting it to a separate analytics tool. The forecaster is built into OpenSearch and is released under the Apache License, Version 2.0, like the rest of the project, so the capability does not depend on a paid edition. Forecasting turns a time-series field into a self-updating signal: the Random Cut Forest model learns incrementally as new data arrives, so the forecast follows the metric rather than a fixed snapshot taken when someone last built a chart.

Typical use cases include projecting when a shard-heavy index or log store will reach its disk watermark, estimating daily peak request rates before a planned event, and watching a business series such as orders or sign-ups for a trend that needs staffing or budget action. The model is small. The topic material gives a typical storage footprint of a few hundred kilobytes per model, so running one forecaster per field is practical. Forecasting and anomaly detection use the same model family but answer different questions. Anomaly detection asks whether the value now is unusual compared with recent behavior. Forecasting asks what value to expect later. Confirm with your own environment how many series you intend to model, because the number of models, the sampling interval and the history you keep determine the load on the cluster.

Forecasting configuration options and when each fits

This table compares the decisions a team makes when it configures a forecaster, from the time-series field and interval to the number of models and whether to group metrics. Read each row for when the option fits and what it costs in storage and compute. The main takeaway is that the model footprint is small per model, so the count of models and the data volume scanned each cycle usually matter more than the model itself.

Configuration choiceWhen it fitsStorage and compute cost
Time-series fieldUse a date field that reflects when each event occurred, such as request time or metric sample time, so the forecast follows the real signal.Storage is set by the model, not the field. Confirm with your own cluster how much query work the chosen field adds at each refresh.
Aggregation and intervalPick a sum, average or count that matches the business question, and an interval fine enough to show the pattern but coarse enough to be stable.Finer intervals produce more buckets to aggregate on every run, which raises query load on the cluster. Coarser intervals reduce it but can hide short spikes.
Forecast horizonShort horizons suit capacity alerts that must fire before a disk or queue fills. Longer horizons suit planning, where less precision is acceptable.The horizon mainly affects how far predictions extend and how much value is useful. Confirm the horizon limits supported in your OpenSearch version in the forecasting docs.
Models per fieldA single forecaster on one metric suits a small number of critical signals, such as cluster-wide indexing rate.Each model has a small footprint, typically a few hundred kilobytes according to the forecasting docs. Storage stays modest, but many models multiply the aggregation work.
One model per entityUse separate models for each host, index or tenant when behavior differs sharply between them and each needs its own alert.Model count grows with entity count, so storage and scheduled query load grow together. Ask the team to size the entity list before enabling it.
Single metric versus grouped setA single metric keeps results easy to read and alert on. A grouped set fits fleets where many series share a pattern and must be compared.Grouped sets add per-group models and results. Expect more alerts to review and more index growth for forecast results over time.
Pairing with alertingAttach an Alerting monitor when a forecasted value is predicted to cross a threshold, so the team acts before the breach.Monitors run on a schedule and add query cost. Each alerted series adds notification volume that someone must triage.

How to set up a forecast and check its output

This sequence takes a time-series field from a version check to a forecast that you have compared against known history, so you know whether it deserves trust before anyone alerts on it.

  1. Confirm cluster version and plugin availability

    Start by checking which OpenSearch version the cluster runs and whether the forecasting capability is available in that version and in your installed plugin set. Your platform or cluster administrator should pull the version from the cluster and list the installed plugins, then compare both against the forecasting documentation for that release. Confirm the version is still under maintenance, since the releases page describes how long each version receives bug fixes and security patches. Done means you have a written version number and a yes or no on forecasting support, with the owner of any plugin change named. If forecasting is not available, stop here and plan the upgrade or plugin install first.

  2. Select a clean time-series index

    Choose the index that holds the metric you want to predict and confirm it contains one row per regular measurement. Look for a single timestamp field that is populated on every document, a consistent field name across the retention window, and no obvious gaps caused by ingest failures or a changed source. The data owner should confirm what each document represents, because a forecast trained on mixed sources will mix their behavior. Run a quick count and a date histogram over the last few weeks to check for gaps and sudden step changes. Done means you have a named index, a named timestamp field, and a note on any outage or source change that should be excluded from training.

  3. Define the metric and interval

    Decide which numeric field is the forecast target, which aggregation produces it for each interval (for example, average, sum or count), and the bucket size that matches how the business or operations team reads the number. The interval should be coarse enough that most buckets contain data, and fine enough that the forecast horizon answers a real planning question. Agree the metric definition with the team that will act on the forecast, since a sum per hour and an average per hour answer different questions. Done means the metric, aggregation and interval are written down and a sample query returns a clean series for the chosen window.

  4. Create the forecaster

    Create the forecaster against the chosen index, timestamp, metric and interval, and set the forecast horizon the team needs. The Random Cut Forest model learns incrementally from the stream, and each model typically needs only a few hundred kilobytes of storage, so the main cost is the cluster resources used to run the job, not the model itself. Record the forecaster name, its configuration and the user or role that created it so the setup can be reproduced and reviewed. Check that the job starts and reaches a running state without errors in the logs. Done means the forecaster is running and its configuration is saved in source control or your change record.

  5. Compare the forecast with recent actuals

    Before trusting the forecast, compare its output for recent periods with the values that actually happened. Overlay the predicted series on the real series for the same window and look for whether the forecast tracks the level, the daily or weekly rhythm and the direction of recent changes. Pick a period the model did not see in its early training, if your data history allows it, so the check is not just the model repeating what it already learned. The analyst who owns the metric should sign off on the comparison. Done means you have a written judgment, such as tracks well, tracks the level but misses peaks, or does not track, with the specific periods that support it.

  6. Review the forecast against known events

    Test the forecast against periods with known causes, such as a planned release, a seasonal peak or a past incident. A useful forecast should show the expected shape of those periods, and the gaps should be explained rather than ignored. Note which events the model cannot anticipate, such as one-off marketing campaigns, so downstream users know where the forecast is weaker. Done means each known event has a short note on whether the forecast reflected it, and the list of limitations is shared with the people who will read the output.

  7. Decide whether to pair the forecast with alerting

    Only after the forecast passes the checks above, decide whether any forecasted value should trigger a notification. The Alerting plugin can notify when a forecasted value is predicted to breach a threshold, which makes it a way to warn before a limit is reached. Set the threshold with the owner of the capacity or business limit, and start with notifications routed to a review channel rather than to on-call paging. Confirm who receives the alert, how often it can fire, and what action it should prompt. Done means the threshold, recipients and expected response are documented, and a test notification has been delivered to the intended channel.

  8. Schedule periodic output reviews

    Set a recurring review of the forecast against actuals so drift is caught after launch, not after an incident. Assign an owner, define what changes would prompt retraining or a new configuration, and keep the comparison from the first review as the baseline. Ask your team or partner to confirm how the review cadence fits your change process and how the forecaster is recreated after a cluster upgrade. Done means the review owner, cadence and baseline are recorded, and the first scheduled review is on the calendar.

How a forecast flows into an alert

The flow starts with a time-series index of source documents. The Random Cut Forest forecaster reads that index and writes forecast values to a separate derived store, which is the boundary to check: source data stays as indexed, while forecast output is a model product that can be rebuilt. The Alerting plugin monitor then reads the forecast results, compares predicted values with a threshold, and sends a notification when a breach is predicted. Check that the forecast index is read-only to humans, that the monitor points at the forecast output, and that thresholds are reviewed as the signal changes.

Source data feeds a forecaster, whose output drives threshold alerts.

Pairing forecasts with alerting without creating alert fatigue

A forecast is only useful for capacity planning if it reaches the people who can act on it before the predicted breach happens. OpenSearch forecasting can be paired with the Alerting plugin so that a notification fires when a forecasted value is predicted to cross a threshold, which gives the team lead time to add storage, shards or nodes rather than reacting after a disk or latency limit is already hit. The first design decision is therefore the threshold itself. Take it from a business or capacity limit that someone owns, such as the disk watermark your platform team has committed to, a query latency target agreed with an application owner, or a daily event volume that your license or storage budget can absorb. Write the threshold, its owner and the lead time it must provide in the runbook before building the monitor. Confirm the exact monitor and trigger setup against the forecasting documentation for your OpenSearch version.

Routing decides whether the alert is acted on. Send forecast breach notices to a channel that the capacity owner reads, not to the general on-call queue, and label them as predictions so that responders do not treat them as incidents. Keep the severity separate from live alerts: a forecast that a disk will cross a limit in several days usually warrants a ticket, while a current breach warrants a page. Test each notification path with a deliberately low threshold in a non-production cluster and confirm that the message contains the index pattern, the forecast horizon and the threshold, so the recipient can judge the urgency without opening the cluster. Tuning the monitor itself, including trigger conditions, throttling and suppression, follows the same principles covered on the OpenSearch alerting and anomaly detection page, so this page only sets the forecast-specific choices.

Noise is the main risk. Forecasts on noisy or seasonal metrics can oscillate around a threshold, and a monitor that fires on every crossing trains people to ignore it. Review the alert history after the first few weeks of operation: count how many forecast notices led to an action, how many expired without a breach, and how many were acknowledged and dismissed. If most notices are dismissed, adjust the threshold, the forecast horizon or the trigger, or narrow the monitored indices before adding more monitors. Record each change with the reason so that the next reviewer understands why the threshold sits where it does. Ask your DeployOpen contact or your own platform team to schedule this review as part of the handover, because the review depends on your traffic pattern, which only becomes visible in live data.

Access, data and operational risks for forecasts

A forecaster touches three things at once: the source index, the forecast output and any alert it feeds. Each needs its own access decision, and the forecast results need a retention rule as deliberate as the one for the raw metrics. The cards below cover the checks to settle before a forecaster reaches production.

Who can create and read forecasters

Creating a forecaster is a configuration action, and anyone who can read its output can infer the shape of the underlying metric. Map forecaster creation to a small set of platform roles, and grant read access to forecast results separately from access to the source index. Use the Security plugin's role-based access control to make these boundaries explicit, then test them with a non-admin user before go-live. Confirm which permissions your OpenSearch version requires for forecaster operations, since they are named in the plugin's documentation rather than assumed.

Security docs

Source index read permissions

The forecaster reads the time-series field from a source index, so the identity that runs it needs read access to that index and no broader rights. Scope the role to the specific index pattern used for the metric, not to a wildcard across logs. If you use document-level or field-level security on the source, confirm the forecaster behaves correctly under those restrictions, because a restricted view can produce a forecast that does not reflect the whole dataset. Illustrative example: a role limited to one metrics index pattern, with no access to application logs.

Alert destination permissions

When a forecast is paired with the Alerting plugin, the monitor sends notifications to a destination such as a channel or webhook. Whoever can edit that destination can redirect forecast-driven alerts to an external endpoint, so treat destination management as a privileged function. Confirm which roles may create monitors and which may change notification channels, and record both in your access review. Check that credentials stored for a destination are handled through your secrets process rather than pasted into shared configuration.

Forecast output is still sensitive

A forecast is derived data, but it still reflects the sensitive source metrics it was built from. A forecast of transaction volume, patient throughput or user activity can reveal business patterns to anyone who can read it, even if they cannot read the raw events. Classify forecast indexes with the same sensitivity as their source, and apply the same access roles. Review whether the forecast output is included in dashboards shared beyond the teams that own the source metric.

Retention of forecast results

Forecast results accumulate over time, and their retention is often not set when the forecaster is created. Decide how long predicted values and anomaly bands are kept, and whether they follow the retention policy of the source data or a shorter one. Align retention with your audit and data handling requirements, and confirm how deleting a forecaster affects its stored output. Ask your platform owner to document this decision alongside the retention rules for the source index.

Monitoring the forecaster after upgrades

Forecasters are jobs that must keep running through cluster upgrades, node restarts and index changes, and a stalled job fails silently: alerts stop firing and no one is told. After each OpenSearch upgrade, confirm that existing forecasters still run, that their source indexes still resolve and that the paired monitors still evaluate. Watch the job status and the freshness of forecast output as operational signals. Plan this check into every upgrade window, since maintenance releases carry security patches that often touch the same components.

What buyers ask before adding forecasting to OpenSearch

Does OpenSearch forecasting add licensing cost?

No licensing fee comes from the forecasting capability itself. All software in the OpenSearch project is released under the Apache License, Version 2.0, and the OpenSearch FAQ does not describe any paid edition, so the software cost is the infrastructure you run it on. The costs that do apply are infrastructure for the cluster, the time your team or a partner spends on design and build, and ongoing operation. Confirm with your own procurement team whether any third-party service you add around the cluster carries a license.

How much effort does a first forecast take?

Effort depends mainly on how clean the source time-series data is and how many metrics you want to forecast. A single well-behaved metric with consistent timestamps is a small job. Effort grows with the number of fields, gaps or resets in the data, the number of teams who need to review the output, and how many alerts you wire to the forecasts. Ask any partner for a written scope that lists the metrics, the time horizon, the validation method and the alert targets, because those items set the work.

What does the work need from the client team?

The work needs a named owner for the metrics, someone who knows what normal traffic, capacity or business volume looks like, and access to the cluster in a non-production environment first. Engineers need to confirm field mappings, retention of the source indexes and who receives notifications. Business owners need to say which forecast outcomes matter, such as a capacity ceiling or a revenue floor, so the thresholds reflect a real decision rather than a default.

Can an internal team build forecasting without outside help?

Yes, a team with OpenSearch operating experience can build a first forecaster using the documented forecasting feature and the Alerting plugin. The practical question is capacity: the team must own cluster health, the source data pipeline and the alert handling after go-live. If those skills or hours are already committed to other work, a partner can take the design, build and handover while your staff keep ownership of operations. Decide this before the build starts, because handover quality determines how well the forecasts are maintained.

How does forecasting differ from anomaly detection and alerting?

Forecasting predicts where a metric is heading, while anomaly detection flags values that differ from recent behavior, and alerting sends a notification when a condition is met. The OpenSearch documentation describes pairing forecasts with the Alerting plugin to notify when a forecasted value is predicted to breach a threshold. Anomaly detection and forecasting often run on the same data but answer different questions, so plan them together to avoid duplicate monitors and overlapping notifications. The sibling work on alerting and anomaly detection covers the monitor and tuning side in more depth.

What is the model footprint, and does it change cluster sizing?

The Random Cut Forest model learns incrementally and typically needs a few hundred kilobytes of storage per model, so the model itself is a small addition to the cluster. The larger sizing questions come from the source indexes, the number of forecasted series and the query load from dashboards and monitors that read the results. Ask your engineers to model those inputs against your current node capacity and to confirm the storage and memory behavior on the OpenSearch version you plan to run.

What can forecasts get wrong, and how do we reduce the risk?

Forecasts are only as good as the history they learn from, so structural changes such as a new product launch, a migration or a changed logging format can produce misleading predictions. Limit the risk by validating forecasts against known past events, reviewing them after major changes and keeping alert thresholds conservative until the team trusts the output. Treat forecast alerts as inputs to a human decision, and document who acts on each one and how.

Official OpenSearch forecasting reference

The next read for configuration details is the official OpenSearch forecasting documentation, which covers how a forecaster is defined on a time-series field, the settings it accepts and how results are returned. Read it before you write any forecaster definitions, and keep a copy of the page that matches the cluster you will run, because the feature set and the exact request fields can change between OpenSearch releases. The page labeled latest describes the newest minor version, which may be ahead of the cluster you operate.

Treat the version check as a gating step, not a formality. Confirm the running OpenSearch version on every node, then compare it with the forecasting page for that version. Pay attention to the fields used to define the time-series source, the aggregation and interval options, the horizon the forecaster supports, and any notes about how the Random Cut Forest model is stored and updated. If your team is also planning an upgrade, run the same check against the target version, since version-specific behavior is where forecasting configurations most often break. Ask your platform owner to record the tested version alongside each forecaster definition in your repository.

Also confirm how the Alerting plugin integration is documented for your version, because a forecast that triggers a monitor depends on both plugins behaving as the documentation describes. Where the docs are unclear for your setup, test the forecaster and its alert against a non-production index before you rely on either in production.

How DeployOpen scopes and delivers OpenSearch forecasting

DeployOpen plans, builds, documents and supports OpenSearch forecasting inside your own infrastructure, so the forecast models, their data sources and any alerts tied to them stay under your control. Each engagement starts from a written scope that names the time-series fields, forecast horizons and alert destinations involved.

How we scope

  • Inventory the time-series fields, indexes and business metrics you want to forecast, and confirm they are stored with a usable timestamp.
  • Agree forecast horizons, the decisions each forecast supports and which owners receive the output.
  • Confirm the OpenSearch version, cluster topology and hosting constraints, then put the scope, deliverables and timeline in writing before work starts.

How we build

  • Create and configure the forecaster on your test data, then review whether predicted values track observed behavior over a representative period.
  • Pair forecasts with Alerting plugin monitors for threshold breaches, with test notifications sent to the channels your teams actually use.
  • Check node resources and index growth with your operations team before enabling forecasts on production indexes.

How we hand over

  • Document each forecaster's source field, interval, configuration, owner and the thresholds its alerts use.
  • Walk your platform and operations teams through how to read forecasts, retrain or retune them and disable them safely.
  • Deliver runbooks for access control, role assignments and change handling so the setup can be reviewed by your security and compliance teams.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, which can cover forecaster reviews after OpenSearch version changes.
  • Review alert volume and forecast accuracy periodically, and propose tuning when signals drift or notifications become noisy.
  • Confirm during scoping which upgrade path, maintenance window and support hours your retainer should include.

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.