---
title: Plan your upgrade
description: There are several important factors to consider before starting the upgrade process. Use the following recommendations to build your upgrade plan: Plan...
url: https://www.elastic.co/elastic/docs-builder/docs/2341/deploy-manage/upgrade/plan-upgrade
products:
  - Elastic Cloud Enterprise
  - Elastic Cloud Hosted
  - Elastic Cloud on Kubernetes
  - Elasticsearch
  - Kibana
---

# Plan your upgrade
There are several important factors to consider before starting the upgrade process. Use the following recommendations to build your upgrade plan:
- Plan for an appropriate amount of time to complete the upgrade. Depending on your configuration and the size of your cluster, the process might take just a few minutes or several hours. In more complex environments, the process can take up to a few weeks or more to complete.
- Consider opening a [support case](https://support.elastic.co/) with Elastic to alert our Elastic Support team of your system change. If you need additional assistance, [Elastic Consulting Services](https://www.elastic.co/consulting) provides the technical expertise and step-by-step approach for upgrading your environment.
- Schedule a system maintenance window within your organization.
- When possible, perform testing of the upgrade process in a non-production environment.

The objective of this section is to facilitate the creation of an upgrade plan that addresses all the necessary steps and preparations needed for upgrading your deployment or cluster.

## Compatibility checks

Before upgrading, verify that your current environment supports the version you plan to upgrade to. If not, identify any required intermediate upgrades or component changes and include them in your upgrade plan.
<definitions>
  <definition term="Elasticsearch upgrade path">
    Check the [upgrade paths](/elastic/docs-builder/docs/2341/deploy-manage/upgrade#upgrade-paths) to determine whether you must upgrade through an intermediate version (such as 8.19.x before moving 9.1+), or if you can upgrade directly to the target version.
  </definition>
  <definition term="System requirements">
    Ensure your current operating system is supported by the target versions of Elasticsearch, Kibana, and any ingest components. Refer to the [Product and Operating System support matrix](https://www.elastic.co/support/matrix#matrix_os).
  </definition>
  <definition term="OpenJDK compatibility and FIPS compliance">
    By default, Elasticsearch is built using Java and includes a bundled version of [OpenJDK](https://openjdk.java.net/) in each distribution. While we strongly recommend using the bundled Java Virtual Machine (JVM) in all installations of Elasticsearch, if you choose to use your own JVM, ensure it’s compatible by reviewing the [Product and JVM support matrix](https://www.elastic.co/support/matrix#matrix_jvm).
    If you’re running Elasticsearch in FIPS 140-2 mode, we recommend using [Bouncy Castle](https://www.bouncycastle.org/java.html) as a Java security provider when running Elasticsearch.
  </definition>
  <definition term="Ingest component compatibility">
    Confirm that your ingest components, such as Beats, Logstash, or Elastic Agent, are compatible with the target Elasticsearch version. If they’re not, upgrade them first. Refer to [conduct a component inventory](#conduct-a-component-inventory) for guidance.
  </definition>
  <definition term="Rest API compatibility">
    If you use custom-developed applications or clients, ensure the [Elasticsearch client libraries](https://www.elastic.co/elastic/docs-builder/docs/2341/reference/elasticsearch-clients) are compatible with the target version. If your applications use deprecated or removed APIs, then you might need to update the client code first.
    <note>
      By default, 8.x Elasticsearch clients are compatible with 9.x and use [REST API compatibility](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/2341/reference/elasticsearch/rest-apis/compatibility) to maintain compatibility with the 9.x Elasticsearch cluster.
      REST API compatibility is a per-request opt-in feature that can help REST clients mitigate non-compatible (breaking) changes to the REST API.
    </note>
  </definition>
  <definition term="Index compatibility">
    Elasticsearch provides full query and write support for indices created in the previous major version. If you have indices created in 7.x or earlier, you must reindex, delete, or [archive](https://www.elastic.co/elastic/docs-builder/docs/2341/deploy-manage/upgrade/deployment-or-cluster/reading-indices-from-older-elasticsearch-versions) them before upgrading to 9.x.
    This topic is covered during the [upgrade preparations](/elastic/docs-builder/docs/2341/deploy-manage/upgrade/prepare-to-upgrade#prepare-upgrade-from-8.x), with help from the Upgrade Assistant.
  </definition>
  <definition term="Orchestrator compatibility">
    If you’re using an orchestrator like Elastic Cloud Enterprise or Elastic Cloud on Kubernetes, verify that it supports the target Elastic Stack version. If not, [upgrade the orchestrator](https://www.elastic.co/elastic/docs-builder/docs/2341/deploy-manage/upgrade/orchestrator) before upgrading your cluster. Refer to:
    - [ECE – Stack packs compatibility](/elastic/docs-builder/docs/2341/deploy-manage/deploy/cloud-enterprise/manage-elastic-stack-versions#ece_most_recent_elastic_stack_packs)
    - [ECK – Elastic Stack compatibility](/elastic/docs-builder/docs/2341/deploy-manage/deploy/cloud-on-k8s#stack-compatibility)
  </definition>
</definitions>


## Conduct a component inventory

When you plan to upgrade your deployment, it is very important to map all the components that are being used in the Elastic Stack, and check if they are compatible with the Elasticsearch version you plan to upgrade to by reviewing the [Product compatibility support matrix](https://www.elastic.co/support/matrix#matrix_compatibility).
<note>
  If any of your ingest components does not support the Elasticsearch version you plan to upgrade to, you need to upgrade that component to a version that supports the desired Elasticsearch version before upgrading Elasticsearch.
</note>

As part of the upgrade plan, you will also have to determine if you want to upgrade the ingest components to the same version as Elasticsearch, after the upgrade of Elasticsearch and Kibana.
While not comprehensive, here’s a list of the components you should check:
- Elasticsearch
- Elasticsearch Hadoop
- Elasticsearch plugins
- Elasticsearch clients
- Logstash
- Logstash plugins
- Beats
- Beats modules
- APM agent
- APM server
- Elastic Agent
- Fleet
- Security
- Browsers
- External services (Kafka, etc.)

<tip>
  When you do your inventory, you can [enable audit logging](https://www.elastic.co/elastic/docs-builder/docs/2341/deploy-manage/security/logging-configuration/enabling-audit-logs) to evaluate resources accessing your deployment.
</tip>


## Test in a non-production environment

We highly recommend testing the upgrade process in a non-production environment before applying changes to your production environment. To ensure meaningful results, your test and production environments should be configured as similarly as possible. Consider validating the following areas:
- Enrichment information
- Plugins
- Mapping
- Index lifecycle management (ILM)
- Snapshot lifecycle management (SLM)
- Index templates
- Machine learning jobs
- Inbound sample data
- Live data
- Performance
- Outbound integrations
- Dashboards
- Alerts
- Authentication

During your upgrade tests, pay particular attention to the following aspects:
<definitions>
  <definition term="Cluster stability">
    Does the new version of Elasticsearch form a stable healthy cluster?
  </definition>
  <definition term="Indexing and search performance">
    Does the new version of Elasticsearch perform the same (or better) than the current one on your specific workload and data?
  </definition>
  <definition term="Snapshots">
    Do all of your snapshot repositories work correctly and pass [repository analysis](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-repository-analyze)?
  </definition>
</definitions>


## Upgrade order

When upgrading the Elastic Stack, the process begins with Elasticsearch, followed by Kibana, which must always be aligned in terms of versioning. Other components can remain on earlier versions as long as they are compatible with the target Elasticsearch version, though we recommend upgrading them as well to benefit from the latest features and fixes.
In general, you should upgrade the components of your Elastic Stack in the following order:
1. Elasticsearch
2. Kibana (must be kept aligned with the Elasticsearch version)
3. Fleet Server and Elastic APM (if used)
4. Ingest tools (Beats, Elastic Agent, Logstash, etc.) and Elasticsearch client libraries

If your deployment runs on Elastic Cloud Hosted or Elastic Cloud Enterprise, the platform handles the upgrade and component order automatically in a single plan execution, including the Fleet Server and APM as part of the Integrations Server. You only need to upgrade any external ingest tools afterward.
<note>
  If you use a separate [monitoring cluster](https://www.elastic.co/elastic/docs-builder/docs/2341/deploy-manage/monitor/stack-monitoring/elasticsearch-monitoring-self-managed), upgrade the monitoring cluster before the production cluster.The monitoring cluster should be running the same version, or a newer one, than the clusters being monitored. It cannot monitor clusters running a newer version of the Elastic Stack. If necessary, the monitoring cluster can monitor clusters running the latest release of the previous major version.
</note>


## Example of an upgrade plan

Let's assume you are running all Elastic Stack components in version 8.14 and your main goal is to upgrade Elasticsearch and Kibana to the latest 9.2.3, without requiring to upgrade the ingest components (Beats, Elastic Agent, and Logstash) except when required by the [upgrade paths](/elastic/docs-builder/docs/2341/deploy-manage/upgrade#upgrade-paths).
The minimum steps your plan should include are:
1. Upgrade Elasticsearch and Kibana to the latest 8.19 version, as a requirement for the major upgrade to 9.2.3.
2. Upgrade all ingest components to the latest 8.19 version, as otherwise they won't be compatible with Elasticsearch running 9.2.3.
3. Follow all [preparation steps](https://www.elastic.co/elastic/docs-builder/docs/2341/deploy-manage/upgrade/prepare-to-upgrade) and use the upgrade assistant to ensure the cluster is ready for a major upgrade.
4. Upgrade Elasticsearch and Kibana to 9.2.3.


## Next steps

After you’ve planned your upgrade and defined a clear upgrade path for all the components, you can proceed to the [upgrade preparations](https://www.elastic.co/elastic/docs-builder/docs/2341/deploy-manage/upgrade/prepare-to-upgrade).