// Module included in the following assemblies:
//
// * observability/logging/cluster-logging-upgrading.adoc

:_mod-docs-content-type: PROCEDURE
[id="logging-upgrading-loki_{context}"]
= Updating the {loki-op}

To update the {loki-op} to a new major release version, you must modify the update channel for the Operator subscription.

.Prerequisites

* You have installed the {loki-op}.
* You have administrator permissions.
* You have access to the {product-title} web console and are viewing the *Administrator* perspective.

.Procedure

. Navigate to *Ecosystem* -> *Installed Operators*.

. Select the *openshift-operators-redhat* project.

. Click the *{loki-op}*.

. Click *Subscription*. In the *Subscription details* section, click the *Update channel* link. This link text might be *stable* or *stable-5.y*, depending on your current update channel.

. In the *Change Subscription Update Channel* window, select the latest major version update channel, *stable-5.y*, and click *Save*. Note the `loki-operator.v5.y.z` version.

. Wait for a few seconds, then click *Ecosystem* -> *Installed Operators*. Verify that the {loki-op} version matches the latest `loki-operator.v5.y.z` version.

. On the *Ecosystem* -> *Installed Operators* page, wait for the *Status* field to report *Succeeded*.

. Check if the `LokiStack` custom resource contains the `v13` schema version and add it if it is missing. For correctly adding the `v13` schema version, see "Upgrading the LokiStack storage schema".
