logstash/docs/reference/upgrading-logstash.md
Colleen McGinnis 54472f2e9b
[docs] Fix various syntax and rendering errors (#17580)
* fix various syntax and rendering issues

* more fixes
2025-04-23 15:19:16 -05:00

85 lines
6.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
mapped_pages:
- https://www.elastic.co/guide/en/logstash/current/upgrading-logstash.html
---
# Upgrading Logstash [upgrading-logstash]
::::{admonition} Upgrade to {{ls}} 8.18 before upgrading to 9.0
Upgrading to {{ls}} 8.18 gives you a head-start on new 9.0 features.
This step helps reduce risk and makes roll backs easier if you hit a snag.
::::
## Before you upgrade {{ls}}
* Upgrade {{ls}} to 8.18 for an easier upgrade to 9.0.
* Check out the [breaking changes](/release-notes/breaking-changes.md) docs.
* Read the [*Release Notes*](/release-notes/index.md).
* If youre upgrading other products in the stack, check out the [Elastic upgrade documentation](docs-content://deploy-manage/upgrade.md).
## Upgrade tips and considerations
* Test upgrades in a development environment before upgrading your production cluster.
* If you use monitoring, re-use the data directory when you upgrade Logstash. Otherwise, the Logstash node is assigned a new persistent UUID and becomes a new node in the monitoring data.
* If you use the [elastic_integration filter](logstash-docs-md://lsr/plugins-filters-elastic_integration.md) plugin in Logstash pipelines:
* Logstash and Elasticsearch must be on the same version.
* The recommended order for upgrading {{stack}} is {{es}}-{{ls}}-{{kib}} to ensure the best experience with {{agent}}-managed pipelines.
Note that this is different from the typical {{stack}} upgrade order.
See [when `elastic_integration` is in {{ls}} pipeline](#upgrading-when-elastic_integration-in-pipeline) section for details.
## Ways to upgrade
* [Upgrading using package managers](/reference/upgrading-using-package-managers.md)
* [Upgrading using a direct download](/reference/upgrading-using-direct-download.md)
## When to upgrade [_when_to_upgrade]
Fresh installations should start with the same version across the Elastic Stack.
Elasticsearch 9.0 does not require Logstash 9.0.
An Elasticsearch 9.0 cluster can receive data from earlier versions of Logstash through the default HTTP communication layer.
This provides some flexibility to decide when to upgrade Logstash relative to an Elasticsearch upgrade.
It may or may not be convenient for you to upgrade them together, and it is not required to be done at the same time as long as Elasticsearch is upgraded first. However, there are special plugin cases for example, if your pipeline includes [elastic_integration filter](logstash-docs-md://lsr/plugins-filters-elastic_integration.md) plugin. See [when `elastic_integration` is in {{ls}} pipeline](#upgrading-when-elastic_integration-in-pipeline) section for details.
You should upgrade in a timely manner to get the performance improvements that come with Logstash 9.0, but do so in the way that makes the most sense for your environment.
## When not to upgrade [_when_not_to_upgrade]
If any Logstash plugin that you require is not compatible with Logstash 9.0, then you should wait until it is ready before upgrading.
Although we make great efforts to ensure compatibility, Logstash 9.0 is not completely backwards compatible. As noted in the Elastic Stack upgrade guide, you should not upgrade Logstash 9.0 before you upgrade Elasticsearch 9.0. This is both practical and because some Logstash 9.0 plugins may attempt to use features of Elasticsearch 9.0 that did not exist in earlier versions.
For example, if you attempt to send the 8.x template to a cluster before Elasticsearch 9.0, then all indexing likely fail. If you use your own custom template with Logstash, then this issue can be ignored.
Another example is when your pipeline utilizes the [`elastic_integration` filter](logstash-docs-md://lsr/plugins-filters-elastic_integration.md) plugin. In such cases, the plugin may encounter issues loading and executing deprecated integrations or features that have been removed in newer versions. This can lead to disruptions in your pipelines functionality, especially if your workflow relies on these outdated components. For a comprehensive understanding of how to handle such scenarios and ensure compatibility, refer to the [when `elastic_integration` is in {{ls}} pipeline](#upgrading-when-elastic_integration-in-pipeline) section in this documentation.
## When `elastic_integration` is in {{ls}} pipeline [upgrading-when-elastic_integration-in-pipeline]
[elastic_integration filter](logstash-docs-md://lsr/plugins-filters-elastic_integration.md) plugin requires a special attention due to its dependencies on various components of the stack such as {{es}}, {{kib}} and {{ls}}. Any updates, deprecations, or changes in the stack products can directly impact the functionality of the plugin.
**When upgrading {{es}}**
This plugin is compiled with a specific version of {{es}} and embeds {{es}} Ingest Node components that match the `major.minor` stack version. Therefore, we recommend using a plugin version that aligns with the `major.minor` version of your stack.
If the versions do not match, the plugin may encounter issues such as failing to load or execute pipelines. For example, if your {{es}} version is newer than the plugin, the plugin may not support new features introduced in the updated {{es}} version. Conversely, if your {{es}} version is older, the plugin may rely on features that have been deprecated or removed in your {{es}} version.
**When upgrading {{kib}}**
When you upgrade {{kib}}, {{kib}} downloads the latest version of the integrations through [Elastic Package Registry](docs-content://reference/fleet/index.md#package-registry-intro). As part of the upgrade process, you will also have the opportunity to review and upgrade your currently installed integrations to their latest versions. However, we strongly recommend upgrading the [elastic_integration filter](logstash-docs-md://lsr/plugins-filters-elastic_integration.md) plugin before upgrading {{kib}} and {{es}}. This is because [elastic_integration filter](logstash-docs-md://lsr/plugins-filters-elastic_integration.md) plugin pulls and processes the ingest pipelines associated with the installed integrations. These pipelines are then executed using the {{es}} Ingest Node components that the plugin was compiled with. If {{es}} or {{es}} is upgraded first, there is a risk of incompatibility between the plugins ingest componenets and the newer versions of {{es}}'s Ingest Node features or {{kib}}'s integration definitions.
**When upgrading {{ls}}**
This plugin is by default embedded in {{ls}} core. When you upgrade {{ls}}, new version of the plugin is installed. The plugin is backward compatible accross {{ls}} 8.x versions. However, if you are considering to upgrade {{ls}} only (not the plugin), there are exceptions cases, such as JDK compatibility which require matching certain {{ls}} versions. We recommend visiting [elastic_integration plugin requirements](logstash-docs-md://lsr/plugins-filters-elastic_integration.md#plugins-filters-elastic_integration-requirements) guide considering the {{ls}} version you are upgrading to.