|
| 1 | +--- |
| 2 | +navigation_title: Roll back an integration |
| 3 | +description: Roll back an Elastic Agent integration to the previously installed version, restoring the integration policies and configurations of the previous version. |
| 4 | +applies_to: |
| 5 | + stack: ga 9.3 |
| 6 | + serverless: ga |
| 7 | +products: |
| 8 | + - id: fleet |
| 9 | + - id: elastic-agent |
| 10 | +--- |
| 11 | + |
| 12 | +# Roll back an {{agent}} integration |
| 13 | + |
| 14 | +::::{note} |
| 15 | +This feature is available only for certain subscription levels. For more information, refer to [Elastic subscriptions]({{subscriptions}}). |
| 16 | +:::: |
| 17 | + |
| 18 | +If you encounter issues after upgrading an integration, you can roll back the integration to the version installed before the upgrade. During the rollback action, the integration package and all associated integration policies and their configurations are automatically restored to the previously installed version. |
| 19 | + |
| 20 | +Consider rolling back an integration if: |
| 21 | + |
| 22 | +- The upgraded integration introduces breaking changes that affect your data collection. |
| 23 | +- The new version causes unexpected behavior or errors in your environment. |
| 24 | +- You need to revert to a previous version for compatibility reasons. |
| 25 | + |
| 26 | +:::{note} |
| 27 | +By default, the rollback action is available for 7 days following the integration upgrade. After the rollback window expires, you can no longer roll back the integration to the previously installed version. |
| 28 | + |
| 29 | +You can [configure the rollback time-to-live (TTL)](#configure-rollback-ttl) in {{ech}} or self-managed deployments. |
| 30 | +::: |
| 31 | + |
| 32 | +## Requirements |
| 33 | + |
| 34 | +To successfully roll back an integration, you must have access to all of its integration policies across **all spaces**. If you don't have access to the related spaces, the rollback action will not succeed. |
| 35 | + |
| 36 | +## Roll back an integration |
| 37 | + |
| 38 | +1. In {{kib}}, go to **Integrations** > **Installed integrations**. |
| 39 | +2. Select the integration you want to roll back, then open the integration's **Settings** tab. |
| 40 | +3. Click **Rollback <integration>**. |
| 41 | + |
| 42 | + If the button is disabled for an integration, this may indicate: |
| 43 | + - The 7-day rollback window has expired. |
| 44 | + - You don't have access to all integration policies across all spaces. |
| 45 | + - No previous version is available to roll back to. |
| 46 | + - The integration was never upgraded. |
| 47 | + - The integration is not installed from the {{package-registry}}. |
| 48 | + |
| 49 | +4. In the confirmation window, click **Rollback integration**. A confirmation appears if the rollback is successful. |
| 50 | + |
| 51 | +After the rollback of the integration is complete, the associated integration policies, their configurations and related assets are restored to the integration's previous version. |
| 52 | + |
| 53 | +::::{tip} |
| 54 | +You can also roll back an integration from **Integrations** > **Installed integrations**: |
| 55 | + |
| 56 | +1. Click the actions button at the end of the integration's row. |
| 57 | +2. Select **Rollback integration**, then confirm the action. |
| 58 | +:::: |
| 59 | + |
| 60 | +:::{note} |
| 61 | +The automatic upgrade of rolled back integrations is disabled until the integrations are manually upgraded. |
| 62 | +::: |
| 63 | + |
| 64 | +## Configure the rollback TTL [configure-rollback-ttl] |
| 65 | + |
| 66 | +The default duration of the rollback window is 7 days. To configure the rollback TTL duration, add the `xpack.fleet.integrationRollbackTTL` setting in the user settings of your {{ech}} deployment or in the `kibana.yml` configuration file of your self-managed deployment. |
| 67 | + |
| 68 | +For example, to extend the rollback window to 14 days, set: |
| 69 | + |
| 70 | +```yml |
| 71 | +xpack.fleet.integrationRollbackTTL: 14d |
| 72 | +``` |
| 73 | +
|
| 74 | +For more information, refer to [{{fleet}} settings in {{kib}}](kibana://reference/configuration-reference/fleet-settings.md). |
0 commit comments