Why a Loki 2.x to 3.0 upgrade needs a written plan
A Loki 2.x to 3.0 upgrade needs a written plan because it changes how Loki indexes data, how it reads configuration and how it accepts logs. A binary swap can stop ingestion or leave queries returning gaps. The changes fall into four areas: the index moves to TSDB and schema v13, structured metadata is handled differently, shipper settings from 2.x are removed, and new default limits can reject log lines that the old defaults accepted. Platform engineers own the storage and configuration work, while the teams that ship logs own the limits that their traffic may trigger.
The official upgrade guide in the Loki documentation is the reference the team must follow, and its steps run in the order it gives. Before any change, confirm which index and schema settings apply to your object storage backend, which removed shipper options appear in your current configuration, and which default limits affect each tenant. Record each answer in a change ticket with a named owner. If the guide states that a step cannot be reversed, treat that step as a go or no-go decision for the change board, not as an ordinary task.
Plan for 4.0 now. The Loki documentation states that simple scalable deployment mode is being deprecated and will be removed with the Loki 4.0 release, so a cluster on that mode will face a second migration after this one. Decide during planning whether to stay on simple scalable mode through 3.0 or move to another mode, and size the choice against your daily log volume using the Loki deployment modes docs. Test the full sequence in a staging copy with production-like volume and tenant limits, and confirm with the guide whether a rollback is possible once the schema has changed.
What changes in Loki 3.0 and what each change means for your cluster
This table lists the Loki 3.0 changes that most often affect an existing 2.x cluster, with the impact of each and the action to take before cutover. Read each row as a checklist item for your staging run. The main takeaway is that the index format, ingestion limits and config keys need review before production, because some of these problems appear quietly as dropped logs or startup errors.
| Change | Impact | Action needed |
|---|---|---|
| TSDB index and schema v13 | TSDB is the recommended index store for Loki 2.8 and newer. DynamoDB, Bigtable and Cassandra stores are deprecated, so clusters still on them need a planned move. | Record your current index store and schema config. Plan a new schema period with a future start date, and confirm the steps in the official 3.0 upgrade guide. |
| Structured metadata | Fields that are not indexed labels can be stored with log entries. Queries, limits and client behavior for these fields can differ from label-based queries. | Review which pipeline fields should stay labels and which belong in structured metadata. Set the related limits, then test key LogQL queries on a staging copy. |
| Removed shipper settings | Configuration keys for the older shipper settings are removed in 3.0. A config carried forward unchanged may fail validation or be ignored. | Run a config comparison with -print-config-stderr on the running and target versions. Remove or replace every key the target version no longer accepts. |
| New default limits that can reject logs | Default ingestion limits in 3.0 can reject streams, lines or label sets that 2.x accepted. Rejected data may be lost at the edge if nobody watches for it. | Review limits_config for the target version. Set explicit values for tenants that need them, and alert on rejection or discard metrics from the first day after the upgrade. |
| Simple scalable mode removal in 4.0 | The Loki documentation states simple scalable mode is being deprecated and will be removed with the 4.0 release. A 3.0 cluster on this mode will need another deployment mode before 4.0. | Decide now between monolithic and microservices mode, using the daily log volume you expect. Plan the move as a separate project, and check the Loki 4.0 preparation notes. |
| Rollback after schema change | Once a new schema period takes effect and data is written under it, returning to 2.x may not be a simple restore. The exact rollback path depends on the release notes. | Confirm the supported rollback path in the 3.0 upgrade guide before cutover. Take backups of configuration and storage metadata, and write down the point of no return. |
The decision path from your current 2.x cluster to 3.0
The path starts with an inventory of your running 2.x cluster and a comparison of its effective configuration against 3.0, so changed defaults surface before production. The deployment mode check then decides whether simple scalable mode must be split, since that mode is being removed in 4.0. The index store check asks whether you already run TSDB or must migrate before the schema and structured metadata changes apply. Finally, test the new default limits against real traffic, because they can reject logs, and choose a staged rollout or a rebuild based on whether both versions can run side by side.
Decision checks that determine whether you roll out in stages or rebuild.
How your deployment mode changes the upgrade work
Monolithic mode runs Loki as a single binary that handles ingestion, querying, compaction and storage in one process. Loki documents this mode for deployments up to about 20 GB of logs per day, which makes it the simplest case for a 2.x to 3.0 move. Because one process carries every role, the upgrade is a single binary or container replacement, but the change to the storage and schema settings still applies to the whole process at once.
- Components touched: the one Loki process, its configuration file, and any local or object storage paths it writes to.
- Rollout order: there is no read, write or backend ordering. Plan one stop, change, and start window, and take a backup of the configuration and data first.
- Schema and index: the move to TSDB and schema v13 applies to the single process, so confirm the schema config period before starting.
- Limits: the new default limits can reject logs from the moment the process starts, so review per-tenant limits before cutover.
- Simple scalable removal: this mode is not affected by the removal of simple scalable mode in Loki 4.0, but a later move to a larger deployment will need a different path.
Before you schedule the window, confirm your current daily volume is still within the monolithic range documented by Grafana Labs, and check the effective configuration with the print-config tooling described in the upgrade guide.
Simple scalable mode splits Loki into separate read, write and backend targets, and Grafana Labs documents it for workloads approaching 1 TB per day. This is the mode most exposed to the upgrade plan, because the read, write and backend targets each run the new TSDB and schema settings and must agree on them. The Loki documentation also states that simple scalable mode is being deprecated and will be removed with the Loki 4.0 release, so a 3.0 upgrade on this mode is also the start of a migration decision.
- Components touched: the write target, the read target and the backend target, along with the shared object storage and the configuration each one loads.
- Rollout order: confirm the target sequence described in the Loki upgrade guide for your exact version, then roll the targets in that order. Confirm the order with Grafana Labs documentation rather than relying on a general rule.
- Configuration parity: every target must load the same schema and storage configuration, so review the file for all three before the first restart.
- Consequence of the 4.0 removal: a 3.x cluster on this mode will need to move to monolithic or microservices before 4.0, so budget that move as a separate project.
- Verification: after each target restarts, check ingestion and query paths before moving to the next target.
Before you start, ask your team to confirm which target runs each component in your cluster and whether any target runs on hardware that will change during the upgrade.
Microservices mode runs each Loki component as its own deployment, and Grafana Labs documents it for very large clusters. It is the mode that continues beyond the simple scalable removal, so the 2.x to 3.0 work here is mostly about the component-by-component rollout and the configuration that every component shares. The number of components means the upgrade is spread across more pods, services and scaling settings, and the order and timing of rollouts matter more than in the other modes.
- Components touched: distributors, ingesters, queriers, query frontends, compactors, index gateways and rulers, each with its own configuration and scaling settings.
- Rollout order: roll the storage-facing and stateful components with the most care, such as ingesters, and follow the component order in the upgrade guide for your target version.
- Shared configuration: the TSDB, schema v13, structured metadata and removed shipper settings must match across every component.
- Limits and ingestion: the new default limits can reject writes at distributors, so confirm limit values before the first component restarts.
- Simple scalable removal: this mode is not the target of the 4.0 removal, so it is the natural destination for clusters moving off simple scalable.
Before starting, confirm the component layout and scaling settings in your cluster and agree a rollback point with the team that owns the storage.
Backups and inventory to complete before you touch 3.0
These cards cover what must exist before any Loki 3.0 change reaches a cluster that holds production logs. Each one protects against a different failure: unrecoverable data, unknown configuration drift, broken access paths, silent client breakage or an untested change. Assign an owner on the client side for each card before the upgrade calendar is set.
Verified object storage and index backup
Loki keeps compressed chunks and its index in object storage, so the backup must cover both the bucket contents and the index data, with a restore test rather than a copy alone. Confirm with your storage team whether bucket versioning, replication or snapshots are in place and how long they retain prior object versions. The platform or storage team should own this, with the restore test signed off by the logging owner before any schema change is applied.
Loki storage docsEffective configuration snapshot
Capture the effective configuration of the running version, not only the files in your repository, because defaults change between releases and some values are set by flags or environment variables. Store the output with the deployment manifests so that every later difference can be traced to a change you approved. The platform team should own this snapshot and compare it against the 3.0 defaults before the first test deployment.
Customizations and authentication layers
List every reverse proxy, authentication gateway, custom label rule, load balancer header rule and ruler integration that sits in front of or alongside Loki. Loki has no built-in authentication, so the proxy that adds identity and sets the X-Scope-OrgID header is a critical dependency that must keep working through the upgrade. The security or identity team should own this list and confirm that tenant headers still reach Loki after the change.
Client and agent inventory
Record every host, container, Kubernetes namespace and network device that sends logs, along with the shipper, version and labels it uses. Include any remaining Promtail installations, which reached end of life on March 2, 2026, and plan their move to Grafana Alloy alongside the upgrade rather than after it. The operations team responsible for each log source should own its row in this inventory.
Promtail docsProduction-like test environment
Build a test cluster from the production configuration, the same storage backend type, a representative tenant set and a sample of real ingestion rates, so that limit changes and schema changes are exercised before production. Include a copy of the most-used dashboards and alert rules so that query behavior can be compared. The platform team should own the environment, and the logging owner should approve the test scope in writing.
Tenant, retention and limit settings
Record the tenant IDs, the per-tenant limits, the retention rules by global, tenant or stream selector, and the ingestion limits in force today. Version 3.0 changes default limits that can reject logs, so an unrecorded override can be lost or a default can start rejecting traffic that was previously accepted. The logging owner and each tenant's team lead should confirm these values and sign off on any change.
Loki retention docsPlanning the 3.0 upgrade with simple scalable mode removal in 4.0 in view
The Loki documentation states that simple scalable deployment mode is being deprecated and will be removed with the 4.0 release. If your cluster runs in simple scalable mode today, that statement changes the question you are answering in this upgrade. You are no longer only asking whether 3.0 runs on your current layout. You are also asking whether the 3.0 upgrade is the right moment to move to microservices, or whether it is better to keep the topology stable for the upgrade and plan the move as a separate change. Both paths are workable, but the choice should be made deliberately and written down before the upgrade window is booked.
Moving during the 3.0 upgrade means changing two things at once: the schema and storage changes that 3.0 requires, and the process layout. That combination makes failures harder to attribute. Staying in simple scalable mode keeps one variable in motion, but it leaves a second migration on the calendar. Confirm with your own team which ingestion volume, query load and on-call capacity you can support in each target, and check the current deployment mode documentation to see which sizing guidance applies to your daily log volume. Ask your platform owners whether the microservices topology is already staffed and tested in your environment.
Whichever path you choose, track the 4.0 breaking-change list as an input to the 3.x plan. Confirm which of your configuration keys, storage clients and deployment targets are affected, and make sure the 3.0 configuration you write does not depend on anything 4.0 removes. Ask your vendor or delivery partner for the current 4.0 removal notes at the time of planning, because the release timing and scope should be confirmed from the official release notes rather than assumed from this page.
The upgrade sequence from 2.x to 3.0 with rollback points
This sequence moves a Loki 2.x cluster to 3.0 with the most reversible work first. Each step ends with a rollback point, and the point of no return arrives when the cluster first writes TSDB index data under the new schema.
Freeze configuration and capture the effective config
The platform owner freezes changes to the Loki configuration, Helm values or deployment manifests and records the deployment mode in use. Capture the effective configuration of the running 2.x version with
-print-config-stderr, store it in version control and confirm the exact image tag. Done when the captured config is committed and the team can name the deployment mode, which matters because simple scalable mode is being removed in 4.0. Rollback point: no change has been made, so the current deployment is the rollback.Back up data, configuration and index state
The platform owner backs up the configuration, the object storage buckets that hold chunks and index files, and any index store still in use. Confirm that bucket versioning or replication is enabled, then restore the configuration into a scratch namespace to prove the backup is usable. Ask the storage team to confirm how long a restore of your buckets takes, since no timing is assumed here. Done when a restore test succeeds. Rollback point: the backup is the recovery path for everything that follows, so do not continue until the restore test passes.
Stage the upgrade with production-like data
The platform team builds a staging environment that mirrors production: the same object store type, the same
auth_enabledsetting, the same reverse proxy in front of Loki and the same tenant IDs. Load a representative sample of recent data, then start 3.0 with the changed configuration. Checks: the process starts cleanly, the logs show no configuration warnings, a test push succeeds withX-Scope-OrgIDset, and a known LogQL query returns the same results as the 2.x baseline. Rollback point: staging is disposable, so no production system is affected.Apply schema, index and limit changes in configuration
The platform team edits the configuration for schema v13 with a TSDB index, removes the shipper settings that 3.0 no longer accepts and sets explicit per-tenant limits so that new default limits do not reject logs unexpectedly. The schema change takes effect from a dated period, so confirm the start date against the official upgrade guide before deployment. Checks: the configuration validates, the
-print-config-stderroutput is diffed against the step 1 capture, and every removed key is accounted for. Rollback point: nothing has been written under the new schema, so reverting the configuration is still safe.Upgrade a non-production cluster or tenant
Deploy 3.0 to a non-production cluster or tenant that receives mirrored or test traffic, and keep the 2.x production deployment running unchanged. The first write under schema v13 and TSDB is the point of no return for that cluster, because chunks and index files written under the new schema cannot be treated as 2.x data again. Confirm with the upgrade guide which 2.x versions can read them and whether restoring from backup is the only way back. Checks: push rejections by tenant, ingester and querier error rates, and query latency compared with the 2.x baseline.
Run ingestion, query and retention checks
Hold the non-production cluster under normal load and confirm that each function works. Check that pushes from Grafana Alloy, Fluent Bit or other clients are accepted, that the compactor runs with
retention_enabledset as intended, that the ruler evaluates its rules and that Grafana queries return results for each tenant. Ask the team to agree the observation window in writing before cut-over. Done when every check is logged with a result. Rollback point: from here, rollback means restoring from the step 2 backup or moving forward with a fix, and the team should record which one applies.Roll forward to production with a go or no-go decision
Repeat steps 4 through 6 in production under a written go or no-go decision signed by the service owner and the security or compliance lead. Keep the 2.x deployment manifests and backups available until the team agrees they can be retired. Checks: production dashboards show the same ingestion and query health as staging, and tenant-level limits are not rejecting expected traffic. Done when the sign-off is recorded. Rollback point: once production data is written in TSDB, the practical path back is restoring from backup, so the decision should name who can authorize that restore.
How to test the upgrade and roll back if ingestion breaks
Decide the rollback position before the upgrade window opens, because the 2.x to 3.0 change is not symmetrical. Test in a copy of production that receives mirrored traffic from every client type you run: Grafana Alloy, any OpenTelemetry Collector pipelines, Fluent Bit or Fluentd, and the Docker logging driver where you use it. Retire Promtail before this test if it is still in use, since it has reached end of life. For each client, confirm that streams arrive with the expected labels, that structured_metadata fields are stored where you intended, and that nothing is silently dropped. Then run a fixed set of LogQL queries against a known log set you injected yourself, and compare counts and sample lines with the pre-upgrade results. Use a tenant ID header per team so you also see whether X-Scope-OrgID routing still matches your existing tenants.
Limit behavior needs its own test with realistic per-tenant volumes, not a single synthetic burst. Replay a day of peak traffic for your largest tenant and confirm that the new default limits do not reject lines your current configuration accepts. Rejections show up as 429 responses at the write path and in ingester logs, so watch those metrics during the replay. Also test retention with retention_enabled set as it will be in production, and confirm that the compactor runs, that expired data is removed on schedule, and that nothing is deleted that you meant to keep. Finally, send requests through the authenticating reverse proxy you chose for Loki, since Loki does not authenticate requests itself, and verify that every tenant can reach only its own data.
Roll back when the failure blocks ingestion for a tenant you cannot reroute, when queries return wrong results, or when retention deletes data it should not. Rejections caused by limits can often be fixed by changing configuration and do not by themselves justify reverting. Rollback is harder once the new version has written data. Chunks and index entries written in the TSDB index format with schema v13, and any structured metadata stored with them, are not guaranteed to be read correctly by 2.x. Plan for that by keeping the old configuration and binaries available, by taking a storage snapshot before cutover, and by deciding in advance how new-format data will be handled. Confirm the exact rollback path, including whether 2.x can read data written by 3.0 and what the schema and index steps require, against the official upgrade guide for your target version before you schedule the change.
What makes a 2.x to 3.0 upgrade take longer
This table lists the factors that expand a Loki 2.x to 3.0 upgrade and what to check for each one. Read it as a scoping checklist: the more rows that apply to your setup, the more planning, testing and staged rollout the upgrade needs before production.
| Driver | Why it adds work | What to check |
|---|---|---|
| Volume of stored data | Existing chunks and index entries stay in the older format, and the move to TSDB and schema v13 means planning how new data is indexed alongside history. | How many days of logs are retained, which index store is in use today, and how long a test restore or query over old data takes. |
| Number of tenants and per-tenant limits | Each tenant may carry its own overrides, and the new default limits in 3.0 can reject logs that were accepted before. | Every tenant ID, its current limits, and whether any stream or ingestion rate settings rely on old defaults. |
| Custom configuration and dashboards | Removed shipper settings and changed defaults mean config files and Grafana dashboards written for 2.x may not behave the same way. | Compare the effective configuration of the running and target versions, and list dashboards and alert rules that query Loki. |
| Log shippers still on Promtail | Promtail reached end of life on March 2, 2026, so each agent still running it must move to Grafana Alloy before or alongside the server upgrade. | The count of hosts, containers and clusters still using Promtail, and which pipelines or labels each one relies on. |
| Authentication layer in front of Loki | Loki has no built-in authentication, so the reverse proxy or gateway must keep routing the X-Scope-OrgID header correctly after the upgrade. | The proxy type and version, header forwarding rules, and whether tenant access tests still pass against the new version. |
| Helm or Kubernetes packaging | Chart values, StatefulSet layout and storage claims may change with the chart version, so the upgrade touches the deployment as well as the binary. | The chart and version in use, the values file under version control, and whether persistent volumes can be backed up before the change. |
| Environments needing a staged rollout | Each environment, from test to production, needs its own rollout, rollback point and verification, and the sequence adds time. | How many environments exist, which ones hold regulated or customer data, and the rollback procedure agreed for each. |
Questions buyers ask before upgrading Loki 2.x to 3.0
How much effort does a Loki 2.x to 3.0 upgrade take?
The effort depends mostly on how much your current cluster differs from the defaults and documented changes in 3.0. The main cost components are internal engineering time for inventory, configuration review, a staging rehearsal and the production cutover, plus any partner fee if you buy outside help. Work that recurs is limited, but monitoring and tuning after the upgrade keep drawing on your team. Ask any quote to itemize discovery, configuration changes, storage and index migration, testing, rollback planning and documentation, and to state which items are one-time and which are ongoing support.
How long does a Loki 3.0 upgrade take to complete?
No fixed duration applies to every cluster, so confirm timing against a written scope. The main drivers are the deployment mode, the log volume and the number of tenants. Loki's documentation describes a monolithic deployment for up to about 20 GB of logs per day and simple scalable mode approaching 1 TB per day, so a larger footprint means more staging time and a more careful cutover. Other drivers include how much custom configuration you run, whether your agents need changes, and how many teams must sign off on retention and limits before production moves.
What does our team need to provide for the upgrade?
Your team supplies the access and the decisions that no outside party can make for you. Expect to provide:
- Read access to the running configuration, Helm values or deployment files, and the object storage buckets
- A named owner for log retention periods, tenant IDs and per-tenant limits
- Staging capacity that matches production closely enough to test queries and ingestion
- A maintenance window and an agreed rollback point
- Contacts for the teams that send logs, so they can confirm their data still arrives
Can our own team upgrade Loki without outside help?
A team that already runs Loki in production can usually do the upgrade alone if it has time to read the official upgrade guide carefully and test in staging. The work needs skills in Loki configuration, object storage, Kubernetes or your chosen host platform, and Grafana queries. Teams with a small single-server deployment and a short list of changes often manage this in-house. Teams that serve several business units, hold logs under retention rules or cannot spare engineers for a staged rehearsal tend to find the work harder to schedule than to perform.
What happens to logs that the new default limits reject in Loki 3.0?
Logs that exceed an active ingestion limit are refused at the write path, so they never reach storage, and the sending agent may retry or drop them depending on its settings. Before the cutover, compare the effective configuration of the running and target versions with the -print-config-stderr option, and review every value under limits_config that your tenants depend on. Confirm the exact behavior and any changed defaults in the 3.0 release notes and upgrade guide, and set alerts on rejected-sample metrics in staging so gaps are visible before production users notice.
Does moving to TSDB and schema v13 require re-ingesting existing logs?
Existing chunks do not need to be re-ingested to remain queryable, but the schema change must be configured correctly so Loki knows which index format applies to which time range. TSDB is the recommended index store for Loki 2.8 and newer, and older stores such as DynamoDB, Bigtable and Cassandra are deprecated. Plan the schema configuration period, the object storage layout and the index store settings together, and test a query across the boundary date in staging. Confirm each step against the official upgrade guide for your deployment before you change production.
Should we plan for the removal of simple scalable mode now?
Yes, if your cluster runs in simple scalable mode, because Loki's documentation states that the mode is being deprecated and will be removed with the Loki 4.0 release. A 3.0 upgrade is a good point to record which deployment mode you use and to decide whether you will move to monolithic or microservices. Choosing the target layout early avoids doing two platform changes in a row. Ask your partner or your own team to document the target topology and its sizing assumptions, so the later move has a written baseline.
When should we bring in outside help for a Loki upgrade?
Bring in outside help when the upgrade touches several tenants, regulated retention or audit logging, or a cluster your team cannot take offline for testing. DeployOpen plans, implements, backs up, upgrades and documents self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for that written scope, the rollback approach and the handover documents before you compare quotes, since those define what you are buying.
How DeployOpen scopes, delivers and supports your Loki upgrade
DeployOpen plans and carries out the Loki 2.x to 3.0 upgrade inside your own infrastructure, starting from a written scope that names the clusters, storage backends and clients involved. The work covers the configuration review, schema and storage changes, testing in a non-production environment and the documentation your operators need after cutover.
How we scope
- Inventory your current 2.x deployment mode, index store, object storage and shipper settings before agreeing a plan.
- Compare the effective configuration of your running version against 3.0 to list changed defaults and removed options.
- Agree in writing which tenants, retention rules and limits must be reviewed, since new default limits can reject logs.
How we build
- Prepare a TSDB and schema v13 configuration with structured metadata settings and a documented schema transition.
- Remove deprecated shipper settings and confirm that log shipping agents still send data as expected.
- Test the upgrade in a staging copy of your cluster, including ingestion rate, query results and retention behavior.
How we hand over
- Deliver a runbook covering the cutover sequence, rollback steps and the checks run before and after the change.
- Document the configuration differences between 2.x and 3.0 so your team can review them against your own standards.
- Include a plan for the removal of simple scalable mode in Loki 4.0 so the next migration starts from known facts.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the engagement closes.
- Ask for a clear list of what the retainer covers, including response expectations, before signing.
- Confirm with DeployOpen which upgrade and patch releases are included in any retainer scope.

