Why a Loki 4.0 upgrade needs planning before the release date
The upgrade from a running Loki 3.x cluster to 4.0 is blocked by removals, not by new features. The breaking changes are listed in the unreleased upgrade guide, and that guide can still change before the release, so treat its current contents as a working plan rather than a final list. The guide also says not to upgrade while a removed storage backend is in use, and Loki will fail to start if one is still referenced. That makes the first task an inventory: find every store definition, including BoltDB, Cassandra, DynamoDB, BigTable and gRPC, and every simple_scalable deployment target in your Helm values, unit files or manifests.
The supported path runs through 3.x first. Move the cluster to the latest 3.x patch release before preparing for 4.0. The most recent release on the Loki GitHub releases page is v3.7.8, published September 17, 2026, so confirm that your target patch and your intermediate steps are the ones Grafana Labs currently recommends. No 4.0 release date is supplied for this page, so confirm timing directly with Grafana Labs through its release channels and the Loki releases on GitHub page. Plan the work against the calendar of your change windows, not against a date you have not verified.
Ask your team to answer three questions before anything is scheduled. Which storage backends and deployment modes are in use today, and who owns each one? Which compactor, metric and configuration settings will change, and which dashboards or alerts depend on renamed metrics? Who will validate a staging upgrade and sign off on production, given that the guide may change? A partner quote for this work should be built from the answers to these questions, with the inventory, staging environment and rollback plan named as separate deliverables.
Which Loki 4.0 changes affect your cluster and what to do
This table lists the Loki 4.0 breaking changes that the upgrade guide currently names, with the impact on a 3.x cluster and the first check to run. Read each row against your deployment config, storage_config and compactor settings, then mark the rows that apply to you. The main takeaway is that a cluster still using simple scalable mode or a removed store cannot upgrade to 4.0 as it stands, so those rows come first.
| Change | Impact on a 3.x cluster | Action needed |
|---|---|---|
| Removal of simple scalable deployment mode | Read, write and backend targets stop being a supported layout in 4.0, so a cluster started this way must move to monolithic or microservices. | Check deployment config for simple scalable targets (read, write, backend) and plan the target layout before the 4.0 upgrade. |
| Removal of BoltDB, Cassandra, DynamoDB, Bigtable and gRPC stores | Loki fails to start if a removed store is still referenced, and the upgrade guide says not to upgrade while using one of them. | Search storage_config for boltdb, cassandra, aws (DynamoDB), bigtable and grpc_store, then migrate the index to TSDB on a supported object store. |
| Thanos storage clients becoming the default | Object storage access may move to the Thanos clients without an explicit setting, which can change behavior on your bucket. | Review object storage client settings in your 3.x config and test reads and writes against a staging copy of your bucket. |
| Deletes configured on the compactor | Delete request handling is tied to compactor configuration, so delete rules placed elsewhere may not take effect. | Confirm that delete rules sit in the compactor config and test one delete request in staging before 4.0. |
| Renamed and removed metrics | Dashboards, alerts and recording rules that query old metric names will show gaps or stop firing. | List metric names used in Grafana dashboards, alert rules and Prometheus scrape jobs, then compare them with the 4.0 release notes. |
| Removal of deprecated configuration options | Config keys marked deprecated in 3.x may be rejected at startup, which blocks the upgrade. | Compare running config with the target version using -print-config-stderr and remove or replace each deprecated key. |
| Scope of this list | The upgrade guide lists changes on its unreleased main branch, so items may be added, changed or removed before release. | Re-check every row against the official release notes for 4.0 when it ships, and repeat the config comparison on that release. |
How removed storage backends stop a Loki 4.0 start
Loki 4.0 will not start if its configuration still references a removed storage backend, so this check is the first gate in the upgrade. Each store below needs to be found in your configuration, mapped to its replacement and confirmed with a test start on the target version.
Google Bigtable store
Search your schema_config and storage_config blocks for a Bigtable index or chunk store type. Bigtable is one of the removed backends, so Loki 4.0 will fail to start while any stanza still names it. Plan the move to TSDB as the index store and confirm that your chunk storage points at a supported object store such as S3, Google Cloud Storage or Azure Blob Storage. Note the period boundaries in your schema, because existing data stays readable under its original schema entries.
Apache Cassandra store
Search for cassandra in index and chunk store settings, including any cassandra_storage_config block and any schema period that names it. Cassandra is removed in 4.0, and the upgrade guide says not to upgrade while any removed backend is in use. Confirm which index store each period uses, then plan the index move to TSDB before changing the target version. Ask your team whether any other system shares the same Cassandra cluster, since that affects what you can decommission.
- TSDB recommended from
- 2.8
Amazon DynamoDB store
Search for aws or dynamodb index store entries and the dynamodb block in storage_config. Removing the reference is not enough on its own, because existing index data written under DynamoDB must remain queryable for the retention window you keep. Confirm with your Loki version and schema history how old periods are handled, and test queries that span the boundary before cutover. Check IAM permissions that were granted only for DynamoDB access so they can be reviewed afterward.
gRPC store
Search for grpc_store in storage_config and in any index or chunk type setting. The gRPC store is listed among the removed backends, so a leftover entry blocks startup in the same way as the cloud stores. Confirm the replacement with the upgrade guide for your target release, since this store was typically used with an external index service. Document which component served it so the migration plan covers every dependency.
BoltDB store
Search for boltdb and boltdb-shipper index types and for the boltdb_shipper block, which older clusters used before TSDB. BoltDB is the oldest store on this list and is often found in clusters upgraded across several major versions. Confirm which schema periods still use it, and check local index directories on ingesters and queriers that may hold data you need to keep. Plan the move to TSDB ahead of 4.0, because the guide directs you not to upgrade while any removed backend remains in use.
Decision path from a 3.x cluster to a 4.0-ready configuration
The path starts with an inventory of the running deployment mode, index store and object store settings, and the compactor retention and delete configuration. A removed store or a simple scalable target sends the team to remediation: migrating the index store, moving to monolithic or microservices, or fixing compactor deletes. Every branch then converges on the latest 3.x patch, where the effective configuration is compared with the 4.0 upgrade notes before any 4.0 change is scheduled.
Decision path from a 3.x cluster to a 4.0-ready configuration, with remediation branches converging before the 4.0 plan.
What changes depend on your Loki deployment mode
Monolithic mode runs Loki as a single binary that handles ingestion, querying and storage in one process. The Loki documentation places it at up to about 20 GB of logs per day, and it is not the mode the 4.0 removal targets. That does not mean the upgrade is free. A monolithic cluster still needs its storage backend, configuration and metrics checked against the upgrade guide, because the breaking changes apply to every mode.
- Storage backend: Confirm the cluster uses object storage with TSDB and not BoltDB, Cassandra, DynamoDB, BigTable or a gRPC store, since Loki fails to start if a removed backend is referenced.
- Configuration keys: Check the config file against removed and deprecated options, and compare the effective configuration with the target version.
- Thanos clients: Review the object storage client settings, since Thanos storage clients become the default.
- Metrics and dashboards: Find renamed or removed metrics in alerts and Grafana dashboards before they stop firing.
- Deletes and retention: Confirm where delete requests are configured, since they move to the compactor.
Confirm with your own configuration files which of these items apply before scheduling the work.
Simple scalable mode splits Loki into separate read, write and backend targets, and the Loki documentation places it at up to approximately 1 TB per day. It is the mode being removed with the 4.0 release, so this tab carries the largest rework. Each target has to be mapped to a supported successor before 4.0 arrives, and the mapping changes how the cluster is deployed, scaled and monitored, not just how it is configured.
- Target mapping: List every read, write and backend component and decide which microservices components will replace each one.
- Deployment artifacts: Rewrite Helm values, manifests or service units that reference the read, write and backend targets.
- Load balancing and routing: Rework the query and push paths so clients reach the new components, including any reverse proxy in front of Loki.
- Scaling and storage: Re-plan capacity for separately scaled components, along with the object storage and index layout they depend on.
- Monitoring and alerts: Update dashboards and alert rules to watch the new components rather than the old targets.
This is the tab most likely to need a planned migration window, so ask for the full component inventory before estimating the effort.
Microservices mode runs each Loki component as its own deployment and is intended for very large clusters. The Loki documentation points simple scalable users toward it, so teams moving off simple scalable will often end here. A cluster already in microservices mode does not face the mode removal, but it still has to pass the storage, configuration and metrics checks in the upgrade guide. Its main risk is operational complexity, since more components mean more places for a change to go wrong.
- Component versions: Confirm all components move to the same target version together and that no component is left on an older release.
- Storage and schema: Verify object storage, index settings and removed backends across every component that reads or writes data.
- Compactor duties: Move delete configuration to the compactor and confirm retention behavior on the target version.
- Rollout order: Define the order of component restarts and the rollback point for each stage.
- Configuration drift: Compare each component's effective configuration, since small differences between replicas can surface only after upgrade.
Record the rollout order and rollback point before the build starts, because the sequence differs by component.
What to back up and inventory before touching Loki 3.x
Before any 4.0 change, the cluster needs a recoverable state and a complete picture of what it runs. The five items below connect because each one answers a question the upgrade depends on: what can be restored, what is configured, who is using it, what is being kept, and whether the change works before production sees it.
Object storage and index backups
Loki keeps compressed chunks and its index in object storage, so that bucket and index data is what a failed upgrade would need to recover. Confirm that you can restore both to a known point and that the restore has been tested, not only that snapshots exist. Storage and platform teams own this item, and the database or cloud owner should sign off on restore steps before the upgrade window.
Loki storage docsInventory of config options and targets
List every configuration key in use and every deployment target, including read, write and backend in simple scalable mode. Deprecated options and removed storage backends such as BoltDB, Cassandra, DynamoDB and BigTable can prevent Loki from starting, so an upgrade should not begin while any of them are referenced. Platform engineers own the inventory and should record it in version control.
Tenants, retention and delete rules
Record each tenant ID, its limits, and its retention and delete rules. Retention is disabled by default, so logs are kept indefinitely unless retention_enabled is set; confirm which state your cluster is actually in before relying on it. Delete requests configured on the compactor are a breaking change in the upgrade notes, so list any pending deletes. Compliance and data owners should approve the retention record.
Clients and log shippers
Build a list of every agent and sender writing to Loki, including servers, containers, Kubernetes nodes and devices. Promtail reached end of life on March 2, 2026, with no further updates, and Grafana directs users to Grafana Alloy, so any Promtail host needs a migration plan. Platform and application teams own their senders and should confirm each one before the cluster changes.
Promtail docsTest environment that mirrors production
Build a test environment with the same object storage type, index store, authentication path and reverse proxy as production, then run the upgrade there first. A test cluster on a local filesystem will not reveal problems that appear with production object storage or with auth_enabled and X-Scope-OrgID routing. The operations team owns the environment, and the security team should confirm that test data is handled under the same access rules.
The sequence for moving a 3.x cluster toward 4.0
This sequence turns the 4.0 breaking changes into a tested, reversible plan, so the production change is a rehearsed step rather than a first attempt. Each step closes with a check and a rollback point that the team can confirm before moving on.
Confirm the current version and reach the latest 3.x patch
Record the exact Loki version and deployment mode running in production, then upgrade a test environment to the latest 3.x patch release listed on the Loki GitHub releases page. Keep the production cluster on its current version until later steps are complete. Done means the test cluster runs the patch release, ingests and queries successfully, and the team has a saved copy of the current configuration and Helm values or unit files as the rollback point.
Run the effective configuration comparison
Print the effective configuration of the running version and of the target version using the -print-config-stderr flag, then diff the two outputs. Mark every changed default, every deprecated option and every option the target no longer accepts. The platform owner reviews the list with the Loki maintainers' upgrade notes open. Done means each flagged item has an owner and a planned change, and nothing on the list is unreviewed.
Remove or migrate any removed storage backend
Search the configuration for references to BigTable, Cassandra, DynamoDB, the gRPC store and BoltDB. Loki fails to start when one of these is referenced, and the upgrade guide says not to upgrade while using one of them. Migrate the affected tenants or periods to a supported index store, such as TSDB on object storage, in the test environment first. Done means a test cluster starts with no removed backend referenced and existing data remains queryable across the migrated period.
Convert simple scalable deployments
If the cluster runs in simple scalable mode, plan its move to monolithic or microservices deployment, because the Loki documentation states simple scalable mode will be removed with the 4.0 release. Choose the target mode against the daily log volume and the deployment mode guidance. Rebuild the deployment in the test environment with the same object storage and tenant settings. Done means queries, writes and retention behave the same on the new topology, and the old topology remains available for rollback.
Move compactor delete configuration
Move any delete request settings into the compactor configuration, since 4.0 configures deletes on the compactor. Confirm that retention is enabled where intended, because retention is disabled by default and applied by the compactor. Test a delete request against a known test stream and confirm it is removed from query results. Done means a documented delete and retention test passes in the test environment and the configuration diff for the compactor is reviewed.
Update metric names in dashboards and alerts
Use the renamed and removed metric list in the upgrade guide to find every dashboard panel, recording rule and alert that references Loki metrics. Update the names in Grafana dashboards, Prometheus or Mimir rules and alerting pipelines, then check that each panel still returns data in the test environment. Done means no dashboard or alert references a removed metric, and the team has a list of replaced names for the change record.
Rehearse the upgrade with production-sized data where possible
Restore a copy of production object storage or a representative subset into the test environment and run the full upgrade path, including the steps above, from the current version to the target. Measure startup, ingestion, query behavior and any errors against production runbook expectations. Done means the team records what changed, what failed and how the rollback was exercised. If a full copy is not feasible, document the gap and the data sample used.
Perform the production change in a window with a documented rollback
Schedule the production change in an agreed maintenance window, using the exact 4.0 upgrade steps from the official upgrade guide published at release, not from this plan. Take the saved configuration and deployment artifacts as the rollback point, and agree who makes the rollback decision and on what signals. Done means the cluster passes ingestion and query checks after the change, dashboards and alerts show data, and the change record is signed off by the platform owner.
What makes the Loki 4.0 change set longer or shorter
This table lists the factors that expand or shrink the work of moving a Loki 3.x cluster to 4.0. Read each row against your own cluster to see which items will take the most planning, and start with the rows where your answer is 'yes' or 'many'.
| Driver | Why it matters | How to reduce it |
|---|---|---|
| Deployment mode in use | Simple scalable mode is removed in 4.0, so clusters on it must move to monolithic or microservices before the upgrade. | Confirm your current mode early and choose the target mode before the upgrade window opens. |
| Storage backends still referenced | Loki fails to start if BoltDB, Cassandra, DynamoDB, BigTable or the gRPC store is still configured. | Inventory every store setting in your configuration and migrate each one to a supported store. |
| Size of stored data and retention footprint | Large datasets with indefinite retention make storage migration and index review slower to validate. | Confirm retention settings and the index layout, and plan validation on a representative subset first. |
| Number of tenants and per-tenant limits | Each tenant may carry its own limits and retention rules, and each one needs checking against 4.0 defaults. | Export per-tenant overrides and review them against the upgrade guide before the change. |
| Deletes configured on the compactor | Delete requests now depend on compactor configuration, so existing delete workflows may need rework. | Document current delete requests and move their configuration to the compactor settings the guide describes. |
| Custom dashboards and alert rules using renamed metrics | Renamed and removed metrics break panels and alerts silently if no one checks them. | Search dashboards and ruler files for metric names listed in the upgrade guide and update them in staging. |
| Client fleet (Alloy versus Promtail or other shippers) | Promtail is end of life, so hosts still on it need a shipper change alongside the Loki upgrade. | Count shippers by type and migrate Promtail hosts to Grafana Alloy before the Loki change. |
| Authentication behind an authenticating reverse proxy | Loki has no built-in authentication, so the proxy configuration and tenant header handling must still work after the upgrade. | Test the proxy path, X-Scope-OrgID handling and access rules in a staging environment after the upgrade. |
How to test the change and roll back if 4.0 misbehaves
Build a staging cluster on the same major version you run in production, and run the 4.0 upgrade there before any production change is scheduled. A staging cluster that mirrors your production topology, storage backend and object store lets you find the removed options and deprecated backends that will stop Loki from starting. Use the same configuration files you will ship, not a hand-edited copy, so that the test exercises the exact settings you will carry forward. Keep the test plan written down with each check, its owner and its pass criteria, because the reviewers who sign off on the change will ask for that record.
Run a fixed set of checks against the upgraded staging cluster. Replay a list of known LogQL queries from your dashboards and alert rules and compare result counts and label sets with the 3.x baseline. Push a representative ingestion load through your real shippers, such as Grafana Alloy, and confirm that no stream is rejected. Test retention and delete behavior by confirming that retention_enabled and any per-tenant or per-stream retention rules still apply, and that a delete request configured on the compactor removes the data it should. Verify auth by sending requests with and without the X-Scope-OrgID header through your authenticating reverse proxy, and confirm that each tenant sees only its own logs. Finally, check every metric name your dashboards and alerts reference against the renamed and removed metrics listed in the upgrade guide, since a renamed metric fails silently as an empty panel.
Plan rollback before you need it. Rollback depends on keeping the 3.x binaries and images, the 3.x configuration files, and a restorable copy of the index and chunks in object storage taken before the upgrade starts. Test the restore on staging, not just the backup job, and time how long it takes to bring a 3.x cluster back to service from that copy. Confirm with the official Loki upgrade guide which downgrade paths are supported, since a schema or storage change made during the upgrade may not be reversible by simply redeploying the older version. If the guide does not support a downgrade for your storage layout, your rollback is a restore from backup, and the recovery point is the backup time, so the logs written after it must be accounted for in your incident plan.
Questions teams ask before a Loki 4.0 upgrade
How long does a Loki 4.0 upgrade take?
No duration is supplied for this upgrade, so ask for a written schedule before you commit to a date. The main drivers are the number of clusters, the deployment mode in use (simple scalable mode must be moved off before 4.0), the storage backends and index stores referenced in configuration, and how many environments must pass testing in sequence, such as test, staging and production. Dashboards, alert rules and tenant settings that depend on renamed or removed metrics add review time. Ask the provider for phases, test gates, a rollback point and the named dependencies that could move the date. The Loki upgrade guide lists the changes that will shape that plan.
What does an outside Loki 4.0 upgrade cost?
Cost depends on the written scope, and DeployOpen does not publish a price list, so a quote follows from the scope you agree. The components usually include an assessment of your current configuration and storage, a migration plan for deployment mode and backend changes, configuration and log client updates, testing in non-production environments, cutover and rollback support, and documentation with handover. Your internal staff time is a separate cost that you carry whether or not you hire help. The upgrade itself is one-time work, while ongoing support, upgrades and continuous testing are available as retainers and recur. Ask each quote to list the work items, the environments covered, the assumptions and the exclusions.
Can our own team upgrade Loki to 4.0 without a partner?
Yes, if your team already runs Loki in production and has working skills in object storage, your deployment platform and configuration management. The main risk is the set of removals. Simple scalable mode, the BoltDB, Cassandra, DynamoDB and BigTable stores, and the gRPC store are removed, and Loki fails to start if a removed backend is still referenced. Thanos storage clients become the default, deletes move to the compactor, some metrics are renamed or removed, and deprecated options are dropped. Your team should rehearse the upgrade on a copy of production first. If nobody has completed a major Loki upgrade before, or if the cluster is large, an outside review of the plan is a reasonable use of budget.
What do we need to provide for a Loki 4.0 upgrade?
The work needs access and decisions from your side before it starts. Plan to provide:
- Read access to the running cluster's configuration, deployment files or Helm values, and object storage settings.
- A non-production environment that matches production closely enough to test the upgrade.
- Backup copies of configuration and the stored data, made under your own retention and recovery policy.
- Named owners for each tenant, dashboard, alert rule and log source who can confirm behavior after cutover.
- A sign-off contact for each environment and a change window agreed with operations.
DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports, so any assessment of the result stays with your auditors.
Should we wait for Loki 4.0 before upgrading?
No. Stay current on the 3.x patch line now and prepare for 4.0 in parallel. The Loki releases page lists v3.7.8 as the latest release in the supplied sources, and patch releases carry fixes you can use today. The list of breaking changes comes from the upgrade notes on the main branch, which are unreleased, so details may change before 4.0 ships. Waiting leaves you with a larger gap to close and less time to find problems. Work now on removing deprecated stores, moving off simple scalable mode, reviewing deletes and replacing Promtail, then confirm the final list against the 4.0 release notes when they are published.
Do Promtail users need to move before Loki 4.0?
Yes, plan the move now, because Promtail reached end of life on March 2, 2026, and receives no further updates or commercial support. Grafana directs Promtail users to migrate to Grafana Alloy, its supported log shipper for Loki. Do not treat the 4.0 release as the deadline for this change, since an unsupported agent adds security and operational risk on its own. Inventory every host, container and Kubernetes workload that ships logs with Promtail, then move them in groups so that you can check labels, parsing and retention behavior at each step. Confirm with Grafana which Promtail behavior, if any, you depend on before the switch. The Promtail documentation explains the end-of-life status.
What stops a Loki 3.x cluster from starting after an upgrade?
A reference to a removed storage backend is the most direct cause. Loki will fail to start if its configuration still points to Google BigTable, Apache Cassandra, Amazon DynamoDB, the gRPC store or BoltDB, and the upgrade guide says not to upgrade while using any of them. Search your configuration, environment variables and Helm values for these store types, and check for simple scalable targets such as separate read, write and backend deployments that must be reorganized. Compare the effective configuration of your running version with the target version, so that deprecated or removed options surface before production. Migrate index stores while still on a supported version, then re-test ingestion and queries. The Loki upgrade guide lists each change.
Will deletes and retention behave differently in Loki 4.0?
The upgrade notes list deletes configured on the compactor as a breaking change, so delete settings need a review before 4.0. Retention is applied by the compactor and is disabled by default, which means logs are kept indefinitely until retention_enabled is set. Confirm whether each tenant and stream rule is intentional, and check that every rule keeps data for at least 24 hours. Record the retention and deletion settings you rely on for audit or privacy requirements, and test deletion requests on a copy of production so that you can show the behavior. Assign an owner who signs off on retention periods, because the upgrade changes how those controls are configured. The Loki retention documentation describes the current settings.
How DeployOpen works on this
DeployOpen starts with an inventory of what your Loki 3.x cluster actually runs, then maps each breaking change in the upgrade guide against that inventory. The result is a written plan for the changes Loki 4.0 requires, delivered in your own infrastructure so your teams keep control of the cluster.
How we scope
- Inventory the current deployment mode, storage backends, index store and any Thanos or legacy clients in use.
- Map each unreleased 4.0 breaking change to a finding, with the config keys and metrics your dashboards and alerts depend on.
- Agree the written scope, deliverables and timeline with you before any work starts, so the boundaries are clear.
How we build
- Prepare a non-production copy of your configuration and test it against the target Loki version before any change reaches production.
- Remove or migrate references to unsupported storage backends and simple scalable targets, then confirm the cluster starts cleanly.
- Review compactor delete settings, renamed metrics and removed options, and update alert rules and dashboards to match.
How we hand over
- Deliver a change plan with a rollback path, a validation checklist and the exact configuration differences for each component.
- Document the storage, retention and deletion settings as they stand after the changes, so operators can audit them later.
- Walk your platform and operations teams through the runbook and record open items with owners and due dates.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the handover.
- Re-check the plan when Loki publishes new releases in the 3.x line or final 4.0 documentation changes the guidance.
- Confirm the final 4.0 release notes and your vendor or Grafana Enterprise Logs entitlements before scheduling the upgrade window.

