Why Loki ingesters fail when the WAL disk fills or chunk writes fail
When pushes are failing or ingesters report unhealthy during an incident, the most likely cause in a self-hosted Loki cluster is that an ingester can no longer persist what it has accepted. An ingester that cannot write to its write-ahead log or flush chunks to object storage stops accepting new data safely, so the distributor-facing push path starts returning errors and log loss becomes a live risk. This runbook applies when the Loki ingestion troubleshooting guide's storage categories appear in your logs or alerts: disk space full, chunk write failure, WAL disk full and WAL corruption. Those four categories are the ones this page addresses, and they are the first place to look when pushes fail with storage-related errors rather than with limit or validation errors.
The write-ahead log is the ingester's local safety net. Each accepted log entry is recorded on the ingester's local disk before it is held in memory, so a restart or crash does not lose data that was acknowledged but not yet flushed. Separately, the ingester periodically cuts in-memory chunks and writes them to the object store you configured, such as S3, Google Cloud Storage or Azure Blob Storage. The two paths fail differently. A full WAL volume blocks new writes on that ingester at the local level, while a chunk write failure usually points to object storage permissions, endpoints, network reachability or quota. Your first task is to determine which path is failing, because fixing disk space does nothing for a rejected object store credential, and the reverse is also true. Confirm the exact error text and the ingester's volume usage before changing any setting.
Where each storage error stops the write path
The write path starts at the shipper, which pushes log streams to a distributor, and the distributor hands each stream to an ingester. The ingester appends every entry to its write-ahead log (WAL) on a local volume before it holds data in memory, and later flushes completed chunks to object storage. Three points can stop the path: a full WAL volume blocks new appends, a corrupted WAL can fail during replay after a restart, and a failed chunk write leaves data in the ingester until the flush succeeds. Check each stop point in that order, starting with free space on the WAL volume.
Three failure points on the Loki ingester write path, before and after the WAL.
How to triage a disk full or chunk write error in production
This sequence narrows a Loki ingester storage error to one cause, so you know whether to add capacity, free space or restore service before changing anything.
Confirm which storage error the ingesters report
Start from the ingester logs and metrics, not from the alert text alone. Search the ingester pod or service logs for disk space, WAL and chunk flush messages, and note the exact error string, the affected ingester instance and the first timestamp it appears. Use the ingestion troubleshooting guide in the Loki documentation to map the message to one of the storage categories: disk space full, chunk write failure, WAL disk full or WAL corruption. Done when you can name one error category and one start time, and the same message repeats across the instances you checked.
Check free space on the WAL and chunk volumes
On each ingester host or pod, check block usage on the volume that holds the write-ahead log and the volume that holds local chunk data, using the mounted paths from your Loki configuration. Compare current usage with the growth rate over the period since the error began. Record which volume is full, because the WAL and chunk volumes can be separate mounts and only one may be exhausted. Done when you have the used and free figures for each volume on every ingester.
Check inode use on the same volumes
A volume can report free bytes and still refuse writes when it runs out of inodes, which is common when many small files accumulate. Run a filesystem inode report such as df -i against the WAL and chunk paths on each ingester. If inode use is near full while byte use is not, the cause is file count rather than data size, and freeing bytes alone will not restore writes. Done when you know whether byte capacity or inode capacity is exhausted for each volume.
Confirm the object store accepts writes from ingesters
Chunk write failures can come from the object store rather than from local disk. Verify that the ingester role has credentials and network reach to the bucket configured for chunk storage, and check the ingester logs for authentication, permission or timeout errors on object uploads. Confirm the bucket is not full or throttled through the storage provider's console or CLI, and confirm that the ingester is not blocked by an unrelated network change. Done when a test write from the ingester identity succeeds, or you have a specific failing permission or endpoint to fix.
Decide whether to scale, free space or restore
Use the results so far to choose one path. If the volume is full because ingest volume has grown beyond what the current ingesters can hold, plan added capacity or more ingesters. If the cause is a stale or oversized local directory that Loki no longer needs, plan a controlled cleanup with the cluster paused for that instance. If the WAL is corrupt or the ingester cannot replay it, plan a restore of that ingester's data from your documented procedure, with an owner for the decision. Done when the path is written down with the evidence behind it and the person accountable has approved it.
Verify writes recover and record the cause
After the chosen fix, watch the ingester logs for the original error and confirm it stops appearing on every instance. Confirm that chunks flush to the object store and that the free space and inode figures stay within a safe range over the next observation window you set. Write down the root cause, the volume that filled, and the threshold that should trigger an alert, so the sizing and alerting work in the rest of this topic can follow. Done when the error is absent from logs and the volume trend is stable.
Recovery options by failure type
When the ingester's write-ahead log volume fills, the ingester cannot persist incoming entries safely and pushes start failing. The fastest recovery is to create space and let the ingester replay its existing WAL on restart, so entries already accepted are not dropped. Do not delete WAL segments to free space unless the official guide and your replication settings confirm that is safe.
- Free or expand the volume: Remove unrelated files or grow the filesystem or PVC so the WAL directory has headroom before any restart.
- Check what is filling it: Confirm the WAL is the consumer with
duon the configured WAL directory, not logs or other data on the same mount. - Restart the ingester: Restart it once space is available so replay can complete, then watch the replay finish in the logs before assuming recovery.
- Stop pushes if needed: Reduce or pause incoming traffic while replay runs so the volume does not fill again during recovery.
- Size for the next spike: Plan volume capacity and retention of the WAL against peak ingestion, not average.
Check that replay completes, that ingestion metrics return to normal, and that the volume now has sustained headroom.
Chunk write failures mean the ingester or flush path cannot write compressed chunks to the object store. The cause is usually in the path to the bucket rather than in Loki itself, so start with the storage configuration and the permissions the process actually uses. Errors often appear in bursts, and throttling can look like a connectivity problem.
- Verify credentials: Confirm the access key, secret or workload identity in use is valid and has not expired or been rotated without updating the running pods or hosts.
- Check bucket permissions: Confirm the identity can write, list and read objects in the configured bucket and prefix.
- Test endpoint reachability: From the ingester host or pod, confirm the object store endpoint resolves and accepts connections, including any custom endpoint for S3-compatible stores.
- Look for throttling: Check object store error codes and retry logs for rate limiting, and reduce push pressure or raise store capacity if throttling is confirmed.
- Review the storage config: Compare the bucket name, region and endpoint in the Loki configuration with the values the store expects.
Confirm that flush errors stop in the logs and that chunks appear in the bucket for new time ranges.
WAL corruption prevents an ingester from replaying its log cleanly. The priority is to stop the damage from spreading and to keep the evidence, because the affected data may be recoverable through other replicas or only partly. Whether anything is lost depends on the ingester's replication factor and on what had already been flushed to object storage, so confirm both before changing anything.
- Isolate the ingester: Remove the affected instance from taking new traffic, using the normal scaling or ring procedure, rather than restarting it in a loop.
- Preserve the directory: Copy or snapshot the corrupted WAL directory before any repair so it can be examined later.
- Confirm replication: Check the replication factor and whether other ingesters hold the same entries before deciding what is at risk.
- Accept possible loss of unflushed data: Entries that exist only in the corrupted WAL and were never flushed may be lost. Record the time window so teams can judge impact.
- Follow the official guide: Use the Loki troubleshooting steps for WAL corruption and confirm each step with the version you run.
Before closing the incident, check the ring health, the replication state and the gap in the logs for the affected window.
Configuration settings that control WAL and chunk storage
This table lists the ingester and storage settings that decide where the write-ahead log lives, how it is replayed, how chunks are flushed, and how the cluster talks to object storage. Read each row against your own configuration for the Loki version you run, since key names and defaults change between releases. The main takeaway is that a full WAL volume usually traces back to a mismatch between ingest rate, flush behavior and the size of the volume, not to a single setting.
| Setting area | What it controls | When it fits and what changes if it is wrong |
|---|---|---|
| WAL directory and volume | Local path where the ingester writes its write-ahead log before chunks reach object storage | Place it on a dedicated volume sized for peak ingest across the replay window. If it shares a root filesystem with the OS or container images, a full disk can stop ingestion and affect the host. |
| WAL enablement and replay | Whether the write-ahead log is on, and whether a restarted ingester replays it to recover unflushed data | Keep it enabled for production so unflushed data survives a restart. Disabling it removes disk pressure but risks losing in-memory data on crash. Confirm the exact key in the configuration reference for your version. |
| Chunk flush and retention on the ingester | How long chunks stay in memory and when they are flushed to object storage | Longer hold times grow WAL and memory use. Shorter ones add more small objects to storage. Confirm flush and idle settings in the configuration reference for your version before changing them. |
| Object storage client settings | Bucket, endpoint, credentials, timeouts and retry behavior for chunk uploads | Wrong credentials, endpoints or timeouts surface as chunk write failures while the WAL keeps filling. Check that the client can write to the configured bucket from every ingester node. |
| Replication factor | How many ingesters hold each stream's data before it is considered written | A higher factor protects data but multiplies WAL writes across ingesters. A lower factor reduces disk use but leaves less room when one ingester loses its volume. Set it with your failure tolerance in mind. |
| Ingester volume capacity and alerts | Disk size, free-space thresholds and alerts on WAL growth | Alert well before the volume fills so there is time to fix flush or storage problems. Without a free-space alert, the first sign is usually rejected writes. |
Sizing WAL and chunk volumes so they do not fill again
Disk full errors on an ingester are almost always a sizing mismatch between what arrives, how long it sits locally and how much room the volume has to absorb trouble. The cards below cover the drivers that move the required disk size, and each one should be measured on your own cluster rather than taken from generic figures.
Ingestion rate
The bytes per second your shippers push into each ingester set the rate at which the WAL grows. Compare the rate during your busiest hour with the average, because the peak is what fills a volume. Measure it from your own agents and Loki ingestion metrics over at least a full business cycle, then size against the peak plus margin. A rate that doubled after a new application was onboarded is the usual reason a volume that worked last quarter now fills.
Stream count and cardinality
Each unique label set becomes a stream, and each active stream holds its own chunk in memory and on disk before it is flushed. A high-cardinality label such as a request ID or pod name multiplies the number of open chunks, so the same byte rate can need far more local space. Review active stream counts per tenant and remove labels that do not serve queries before adding disk.
Replay time after restart
When an ingester restarts, it replays the WAL to rebuild its in-memory state, and the WAL must hold everything written since the last checkpoint. A longer checkpoint interval or a slow restart means more data sits on disk at once, and a crash during a backlog can push usage past the volume limit. Time a restart in a test environment with a realistic WAL size and record how much disk the replay needs in addition to steady state.
Flush cadence
Chunks leave the ingester for object storage when they reach size or age limits, and until then they occupy local disk. Longer chunk age settings keep more data local at any moment, while a slow or failing object store causes flushes to back up and the local volume to fill. Check how long chunks stay on the ingester under normal operation and how that changes when object storage latency rises.
Object storage availability
Chunk write failures leave data queued on the ingester, so the health of the bucket and the network path to it sets how much local space you may need in an outage. Ask your storage team for their recovery time objective for the bucket and multiply the ingest rate by the longest plausible write outage to estimate the backlog. Confirm the result against the retention window of your ingesters before accepting a size.
Headroom for spikes and recovery
A volume sized exactly to steady state has no room for a traffic spike, a replay, or a slow flush happening at the same time. Keep free space above your measured peak plus recovery backlog, and set alerts on used percentage and on the trend, so you act while there is still time to add capacity or drop a noisy source. Treat any alert that fires during normal operation as a sizing signal, not as noise to silence.
Which alerts catch storage problems before pushes fail
Alert on the storage signals that come before a push fails, not on the failed push itself. For ingesters, the three groups to watch are free disk percentage on the volume holding the WAL directory and on the volume where chunks are written before upload, the rate of failed flushes or object store writes, and ingester restarts together with how long WAL replay takes. A falling free-space trend gives you time to expand a volume; a sudden spike in flush failures usually means the object store, its credentials or its network path has changed. Confirm the exact WAL and chunk paths on each ingester from your Loki configuration, since they are set by the ingester settings in your own deployment and differ between Kubernetes, VM and single-server installs.
Route all three groups to the on-call rotation with a runbook link, and set severity by how much headroom remains. Disk and flush alerts should page while there is still room to act, because a full WAL volume stops ingestion on that ingester and the data buffered on it is at risk. Restart and replay alerts matter because a long replay after a crash keeps an ingester unavailable and can push the cluster toward its limits. Pick the threshold values with your team from the capacity you measure in your own environment, and check them during a planned restart before you trust them.
The Loki mixin ships a set of recording rules and alerts with each Loki release, and they cover many of these signals. Read the covering topic on Loki dashboards and alerts from the Loki mixin before writing your own rules, so you adopt the shipped alerts where they fit and add only the storage checks your environment needs. Every alert you add should name the volume or ingester it refers to, and each should be tested by simulating the condition in a non-production cluster so you know it fires and reaches the right person.
Security and operational considerations during recovery
Recovery work touches the most sensitive parts of a Loki deployment: object storage credentials, the unflushed log data held in ingester WAL directories, and the tenant data inside corrupted files. The cards below cover the decisions that keep an incident fix from creating a second incident.
Rotate object store credentials deliberately
If a disk-full or write-failure incident involved a leaked or over-shared access key, rotate it before restarting ingesters, not after. Plan the change so every ingester, compactor and querier picks up the new credential in one controlled window, because a partial rotation looks exactly like a storage outage. Check that the old key is revoked and that write errors stop only after the new key is in place. Record who rotated what and when, since the incident timeline depends on it.
Loki storage docsScope ingester bucket access
Ingesters need write access to the chunk and index locations in their bucket, not administrative rights over the whole bucket or account. Grant write and list on the Loki prefixes, separate read access for the compactor and querier, and deny deletion for roles that only ingest. Confirm this against your object store's own permission model, since the exact policy syntax differs between S3, Google Cloud Storage, Azure Blob Storage and S3-compatible stores. Test the reduced policy in a non-production cluster before you apply it during recovery.
Protect WAL directories as primary data
The write-ahead log holds log lines that have been accepted but not yet flushed to object storage, so it is the only copy of that data until the flush completes. Restrict read and write access on the WAL path to the Loki service account, keep it off shared volumes, and exclude it from any cleanup script that clears temporary directories. Before you delete, move or resize anything under the WAL path, confirm which files are still unflushed and whether the ingester can replay them.
Loki ingestion troubleshootingBack up before destructive repair
Any step that removes WAL segments, clears a volume or edits a corrupted file should start with a copy or a volume snapshot taken while the ingester is stopped. Keep the snapshot in a location with its own access controls, because it contains the same tenant log data as the live volume. Write down the snapshot identifier and restore procedure in the incident record. A repair that cannot be undone should wait until someone has confirmed the snapshot restores.
Limit tenant exposure when inspecting files
Inspecting a corrupted chunk or WAL segment means reading log lines from every tenant stored in that file, which can include data the engineer is not authorized to see. Restrict inspection to named responders, run it on a host with no broader data access, and avoid copying raw log content into tickets or chat. When possible, extract only metadata such as file sizes, timestamps and tenant headers. Record what was viewed so the access can be reviewed later.
Confirm retention and deletion before cleanup
Recovery often tempts teams to delete data to free space, but removing chunks outside the retention process can break compliance commitments and create gaps that auditors ask about. Check whether retention is enabled and which tenants or stream rules apply before you remove anything. If you must free space quickly, change ingestion limits or add capacity first and record any deletion as an exception with an owner and approval.
Loki retention docsQuestions teams ask before fixing Loki storage errors
How long does recovering from a Loki WAL disk full or chunk write failure take?
Duration depends on how much data is stuck, how far the ingesters have fallen behind, and whether the root cause is a volume that can be expanded or a object storage path that must be repaired. The first phase is usually stabilizing ingestion so no new data is lost, which can move quickly once disk or permissions are fixed. The longer phase is verifying that the write-ahead log replays cleanly, that chunks reach object storage, and that no ingester is left with corrupt segments. Ask any partner to state which of these phases is in scope and what evidence will close each one. No duration is given here because it is determined by your cluster's data volume and access, which only a review can measure.
Can our internal platform team fix Loki storage errors without a partner?
Often yes, if the team already runs Loki in production and can read ingester metrics, pod or host logs, and the storage configuration. The work is mostly diagnosis: confirming which volume is full, whether the WAL directory or the object store is the failing component, and whether replay has completed. Teams without recent Loki operations experience usually benefit from a partner for the recovery window, because a wrong step (deleting WAL segments, restarting ingesters in the wrong order) can turn a recoverable incident into data loss. Decide based on who is on call, how quickly they can access the cluster, and whether they have a tested runbook.
What does a partner need from us before starting a recovery?
A partner needs enough access and context to see the failure without guessing. Typically this means:
- Read access to Loki configuration, ingester and compactor metrics, and the relevant logs
- Access to the affected volumes or a host session with the ability to check disk usage and WAL directories
- Read or scoped write access to the object store bucket for chunk and index verification
- A named contact who can approve changes, plus a change window agreed in advance for ingester restarts and volume expansion
- A current copy of the Loki configuration and the version in use, since upgrade status affects the fix
Agree in writing who holds credentials and how access is removed after the engagement.
What drives the cost of a fixed-scope recovery and sizing review?
Cost follows the scope agreed in writing, so the main drivers are the number of components involved, how many environments need checking, and how much evidence must be produced. A recovery on a single failing ingester volume costs less than one spanning replicated ingesters, multiple tenants and an object store with chunk gaps. A sizing review adds work for reading historical ingestion rates, retention settings and alert coverage. Recurring items, such as retainer support for upgrades or continuous testing, are priced separately from the one-time recovery. DeployOpen does not publish a price list, so request a quote built from a written scope that lists systems, access, and deliverables.
Can unflushed log data be lost during a WAL or chunk write failure?
Data still held only in the write-ahead log or in memory on an ingester can be lost if the volume is damaged, deleted or corrupted before replay completes. Chunks that Loki failed to write to object storage may remain in the WAL until they are flushed, which is why stopping and clearing the WAL is the risky step. Whether any data is lost depends on the replication factor, how many ingesters still hold a copy, and whether the WAL is intact. Ask a partner to check replication status and WAL integrity before any destructive action, and to document any gap so it can be reported accurately to the log owners.
What should we check in Loki to prevent a repeat of these errors?
Start with the controls that give early warning. Confirm that the WAL directory and the ingester data volume are sized for peak ingestion plus replay time, and that free-space alerts fire well before the volume is full. Verify that the object store credentials, bucket permissions and network path are monitored, because chunk write failures often start there. Review retention, since keeping data longer increases the storage needed for both chunks and the index. Finally, confirm that Loki's own metrics are collected somewhere that still works when the cluster is degraded, so the next incident can be diagnosed quickly.
How DeployOpen scopes and delivers Loki storage recovery
DeployOpen treats WAL disk full and chunk write failures as a storage incident with a defined scope, not a one-off disk expansion. The work starts by reading the ingester volumes, object storage configuration and alerts in your own environment, then agrees on fixes and deliverables in writing before any change is made.
How we scope
- Review the ingester WAL volume sizing, object store configuration and current alerts in your environment
- Confirm which failure modes are present: disk full, chunk write failures, WAL corruption
- Agree a fixed scope in writing, listing the fixes, volumes, alerts and runbook deliverables
- Ongoing support and retainer options are quoted separately from the fixed-scope work
How we build
- Recover affected ingesters with a documented, reversible sequence that protects unflushed data
- Correct the object storage access and permissions path that causes chunk write failures
- Size WAL and ingester volumes against your measured ingest rate and replay requirements
- Test the alert thresholds against a controlled fill and a simulated object store outage
How we hand over
- Deliver a written incident record, configuration changes and the sizing worksheet used
- Provide a runbook covering recovery steps, WAL corruption handling and escalation paths
- Walk your platform and on-call teams through the alerts, dashboards and recovery procedure
- Document the Loki version and configuration keys the fixes depend on for future upgrades
How we support
- Retest the storage alerts and recovery runbook after the handover and record the results
- Review volume growth and ingest trends with your team at an agreed cadence under a retainer
- Plan capacity changes and Loki upgrades together so storage fixes survive future releases
- Confirm with your team which recovery steps need change control and which vendor support to engage

