---
title: "v4.0 | Grafana Loki documentation"
description: "Version 4.0 release notes."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# v4.0

Grafana Labs and the Loki team are excited to announce the release of Loki 4.0. Here’s a summary of new enhancements and important fixes.

For a full list of all changes and fixes, refer to the [CHANGELOG](https://github.com/grafana/loki/blob/release-4.0.x/CHANGELOG.md)

> Note
> 
> See the [deprecations](https://grafana.com/docs/loki/latest/release-notes/v4.-/#deprecations) section for important information about the Loki Helm charts.

## Features and enhancements

Key features in Loki 4.0.0 include the following:

- **Feature 1**
- **Feature 2**
- **Helm charts:** -
- **Docs:**

Other improvements include the following:

- **Improvement 1**
- **Improvement 2**
- **Improvement 3**

## Deprecations

Loki 4.0 removed a number of previous deprecations and introduces some new deprecations. Some of the main areas with changes include:

- [Bloom filters](https://grafana.com/docs/loki/v3.7.x/operations/bloom-filters/), including the deprecation of the experimental Bloom Planner, Bloom Builder, and Bloom Gateway.

To learn more about breaking changes in this release, refer to the [Upgrade guide](https://grafana.com/docs/loki/next/setup/upgrade/).

## Upgrade Considerations

For important upgrade guidance, refer to the [Upgrade Guide](https://grafana.com/docs/loki/next/setup/upgrade/).

- **BREAKING CHANGE - engine:** Unplug the V2 query engine from the config and modules ([#25353](https://github.com/grafana/loki/issues/25353))
- **BREAKING CHANGE - frontend:** Default frontend.encoding to protobuf ([#23985](https://github.com/grafana/loki/issues/23985))
- **BREAKING CHANGE - ingester:** Remove deprecated per-tenant setting `unordered_writes` ([#21835](https://github.com/grafana/loki/issues/21835))
- **BREAKING CHANGE - ksonnet:** Remove boltdb-shipper specific flags from lib ([#21656](https://github.com/grafana/loki/issues/21656))
- **BREAKING CHANGE - logql:** Stop writing `__preserve_error__` as a label ([#24877](https://github.com/grafana/loki/issues/24877))
- **BREAKING CHANGE - logql:** Let an `__error__` filter decide whether a metric query keeps errored samples ([#24719](https://github.com/grafana/loki/issues/24719))
- **BREAKING CHANGE - logql:** Apply grouping to an errored sample’s labels ([#24712](https://github.com/grafana/loki/issues/24712))
- **BREAKING CHANGE - logql:** Remove support for experimental LogQL variants() queries ([#23823](https://github.com/grafana/loki/issues/23823))
- **BREAKING CHANGE - loki:** Upgrade Go module to github.com/grafana/loki/v4 ([#25972](https://github.com/grafana/loki/issues/25972))
- **BREAKING CHANGE - loki:** Remove deprecated `per_tenant_override_config` and `per_tenant_override_period` ([#22856](https://github.com/grafana/loki/issues/22856))
- **BREAKING CHANGE - loki:** Remove targets for Simple Scalable Deployment (SSD) ([#21481](https://github.com/grafana/loki/issues/21481))
- **BREAKING CHANGE - loki:** Remove deprecated `/api/prom` API endpoints ([#21569](https://github.com/grafana/loki/issues/21569))
- **BREAKING CHANGE - loki:** Rename metric `loki_log_flushes` ([#21765](https://github.com/grafana/loki/issues/21765))
- **BREAKING CHANGE - loki:** Remove deprecated `loki_log_messages_total` metric ([#21764](https://github.com/grafana/loki/issues/21764))
- **BREAKING CHANGE - operator:** Stop reconciliation of deprecated BoltDB schemas ([#24990](https://github.com/grafana/loki/issues/24990))
- **BREAKING CHANGE - operator:** Make schemas field required in storage spec ([#24716](https://github.com/grafana/loki/issues/24716))
- **BREAKING CHANGE - querytee:** Configure a primary and a secondary backend ([#25552](https://github.com/grafana/loki/issues/25552))
- **BREAKING CHANGE - querytee:** Remove the request splitting ([#25496](https://github.com/grafana/loki/issues/25496))
- **BREAKING CHANGE - querytee:** Remove the routing modes ([#25487](https://github.com/grafana/loki/issues/25487))
- **BREAKING CHANGE - ruler:** Remove deprecated ruler\_remote\_write\_* per-tenant limits ([#22941](https://github.com/grafana/loki/issues/22941))
- **BREAKING CHANGE - ruler:** Remove deprecated remote-write ‘client’ setting ([#23453](https://github.com/grafana/loki/issues/23453))
- **BREAKING CHANGE - ruler:** Always wipe the remote-write WAL on startup ([#22509](https://github.com/grafana/loki/issues/22509))
- **BREAKING CHANGE - storage:** Limit supported S3 storage classes to STANDARD and STANDARD\_IA ([#26273](https://github.com/grafana/loki/issues/26273)) \[release-4.0.0] (#26310)
- **BREAKING CHANGE - storage:** Rename remaining `loki_boltdb_shipper_*` metrics to `loki_tsdb_shipper_*` ([#25345](https://github.com/grafana/loki/issues/25345))
- **BREAKING CHANGE - storage:** Remove `row_shards` from the schema configuration ([#23683](https://github.com/grafana/loki/issues/23683))
- **BREAKING CHANGE - storage:** Remove the disable\_broad\_index\_queries setting ([#23679](https://github.com/grafana/loki/issues/23679))
- **BREAKING CHANGE - storage:** Remove unused `period_config` settings that are no longer used by TSDB index ([#23665](https://github.com/grafana/loki/issues/23665))
- **BREAKING CHANGE - storage:** Use Thanos storage clients by default ([#22676](https://github.com/grafana/loki/issues/22676))
- **BREAKING CHANGE - storage:** Remove index read cache and index cache validity settings ([#22066](https://github.com/grafana/loki/issues/22066))
- **BREAKING CHANGE - storage:** Remove deprecated write dedupe cache ([#22056](https://github.com/grafana/loki/issues/22056))
- **BREAKING CHANGE - storage:** Remove deprecated BoltDB Shipper storage backend ([#21678](https://github.com/grafana/loki/issues/21678))
- **BREAKING CHANGE - storage:** Remove deprecated BoltDB storage backend for indexes ([#21637](https://github.com/grafana/loki/issues/21637))
- **BREAKING CHANGE - storage:** Remove deprecated gRPC storage backend ([#21638](https://github.com/grafana/loki/issues/21638))
- **BREAKING CHANGE - storage:** Remove deprecated DynamoDB storage backend ([#21601](https://github.com/grafana/loki/issues/21601))
- **BREAKING CHANGE - storage:** Remove deprecated Cassandra storage backend ([#21574](https://github.com/grafana/loki/issues/21574))
- **BREAKING CHANGE - storage:** Remove support for BigTable/GCP storage backend ([#21502](https://github.com/grafana/loki/issues/21502))

## Bug fixes

### 4.0.0 (YYYY-MM-DD)
