When Loki filesystem storage is enough and when local disk Loki Filesystem storage is not
The filesystem object store is a valid choice for a small single-binary Loki install, but it is unreplicated, so losing the disk means losing the logs. A small team that wants Loki running quickly on one server can use local disk for both chunks and the index, provided it accepts that a disk failure, a deleted volume or a corrupted directory removes data that no other copy holds. Loki stores compressed log chunks and its index in an object store. The filesystem backend keeps every one of those objects in a configured directory, with one folder per tenant. In single-tenant mode, chunks are written to a folder named fake, which is the tenant ID Loki uses when auth_enabled is not set to true.
Loki documents three deployment modes. The monolithic mode runs every component in a single binary and is the mode the docs position for up to about 20 GB of logs per day. The simple scalable mode separates read, write and backend targets and is approaching 1 TB per day, but the Loki documentation states that it is being deprecated and will be removed with the Loki 4.0 release, so it is not a path to plan new installs around. Microservices mode is for very large clusters. Before choosing filesystem storage, confirm your expected daily volume against the monolithic guidance, and ask whether your backup process can capture the chunk and index directories while Loki is writing to them. Read the Loki deployment modes docs to confirm the fit for your volume.
Plan the move to object storage before the local disk fills or the first retention need appears. The Loki storage documentation lists Amazon S3, Google Cloud Storage and Azure Blob Storage as recommended production object stores, and notes that the local filesystem is supported but not typically recommended for production. Treat the single-disk install as a stage with a defined exit: set a volume threshold, a recovery time objective for the logs and a date to review both. Ask your team whether they can accept losing the most recent logs after a host failure, and whether an auditor or incident process depends on those logs. If the answer to either question is no, plan object storage now rather than after the first loss.
How the filesystem layout works for single and multi-tenant installs
When auth_enabled is off, Loki runs as a single tenant and does not require an X-Scope-OrgID header. Loki's filesystem object store writes every object, including chunks, under the configured directory, and in single-tenant mode chunks go into a folder named fake. Everything Loki stores for the installation sits in that one tenant folder, so the directory tree is simple to inspect and back up by hand.
- Folder name: chunks are written to a
fakesubfolder beneath the configured filesystem directory. - No tenant header: clients send logs and queries without X-Scope-OrgID, so one set of limits and retention settings applies to all data.
- Simple inspection: operators can list the
fakefolder directly to confirm that chunks are being written. - No separation between teams: anyone who can reach Loki can query every log stored in that folder.
- Single-process fit: this layout matches the small single-binary installs the filesystem backend is meant for.
Before relying on this layout, confirm the exact folder names and configuration keys against the filesystem documentation for your Loki version, and check that your backup job copies the whole configured directory, not only the fake folder.
When auth_enabled is on, Loki is multi-tenant and each request must identify its tenant with the X-Scope-OrgID header. With the filesystem store, each tenant ID gets its own folder under the configured directory, so chunks for one tenant are written separately from chunks for another. This gives you a clear per-tenant layout on disk, which helps with per-tenant cleanup and capacity checks.
- One folder per tenant: each X-Scope-OrgID value maps to its own folder under the configured directory.
- Header required: writes and queries without a valid tenant header are rejected once auth_enabled is on.
- Per-tenant limits: tenant-level settings such as retention can be applied to each folder's data.
- Visible capacity: disk usage per tenant can be measured by checking the size of each tenant folder.
- Illustrative example: a tenant ID such as
team-paymentswould store its chunks under a folder with that name, separate fromteam-search.
Confirm how your clients set the header, because a missing or wrong value on the shipping side is a common cause of rejected writes. Check the multi-tenancy documentation for the version you run before designing tenant IDs.
The folder layout is the only isolation Loki's filesystem store provides at the storage layer. Separate tenant folders keep data apart on disk, but they do not stop a client from sending a different X-Scope-OrgID value or from reading another tenant's data through the query path. Loki has no built-in authentication layer, and its documentation says you must run an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it.
- Storage isolation only: folders separate data on disk, not in the API.
- Proxy as the gate: the reverse proxy must authenticate users and set or validate the tenant header before requests reach Loki.
- Header trust: if clients can set X-Scope-OrgID freely, a tenant boundary exists only on paper.
- Direct access risk: the Loki port and the data directory must not be reachable except through the proxy and by the service account.
- File permissions: restrict read and write access to the data directory at the operating system level.
Ask your security team to test a cross-tenant request through the proxy before go-live, and confirm the authentication design in the Loki authentication documentation for your version.
Deciding between single and multi-tenant mode early is easier than changing it later, because the tenant folder structure and the header requirement affect how clients, dashboards and backups are set up. Plan the tenant list, the naming convention and the directory location before the first write. Consider what happens to existing folders when a team or environment is renamed or removed.
- Decide the mode first: choose auth_enabled before clients are configured, since it changes whether tenant headers are needed.
- Name tenants deliberately: use stable identifiers that match teams or environments, not names that change with reorganizations.
- Plan the directory: place the configured directory on a volume with enough space and backup coverage.
- Map the backup scope: include every tenant folder and the index data in backup jobs.
- Document ownership: record which team owns each tenant folder and who approves deletions.
Before building, confirm the directory and tenant handling for your Loki version with the filesystem documentation and your own backup and access requirements.
Configuration options and when each fits
This table compares the filesystem store with S3-compatible storage on premises and the recommended cloud object stores, along with whether retention is enabled. Read each row against your environment: the option that fits a single small server is rarely the one that fits a cluster that must survive a disk failure.
| Option | Fits when | Main trade-off | What to confirm |
|---|---|---|---|
| Filesystem on a local directory | A single-binary install on one server, a lab, a test environment or a small team whose logs can be rebuilt or are not critical | Data is not replicated, so losing the disk can lose stored chunks, and it is not a production-recommended store in the Loki docs | Disk size and backup method, and whether losing a day or more of logs is acceptable |
| S3-compatible storage on premises | Your organization runs an S3-compatible store such as MinIO and needs object storage inside your own data center | The docs note such stores are supported but not typically recommended for production, so durability and replication fall to you | Endpoint and path-style settings, the store's own replication, and whether it is on the Loki production support list for your version |
| Amazon S3 | You run in AWS and want a recommended production object store for chunks and indexes | Storage, request and lifecycle settings add cost and operational rules that must align with Loki retention | Bucket layout, IAM role use instead of static keys, and lifecycle rules that outlast retention |
| Google Cloud Storage | You run in Google Cloud and want a recommended production object store | Authentication, bucket setup and request costs must be designed for your project and network | Bucket layout, identity method and the Loki version's configuration keys |
| Azure Blob Storage | You run in Azure and want a recommended production object store | Container layout, authentication options and retention interaction need explicit design | Container layout, identity method and the Loki version's configuration keys |
| Retention disabled (default) | You have not set retention, so logs are kept indefinitely until you enable it | Disk or bucket use grows without limit, and the default is not a retention policy | Whether retention_enabled is set in the compactor config and who owns the retention decision |
| Retention enabled | You need logs removed on a defined schedule, globally, per tenant or per stream selector | The compactor applies it, rules must be at least 24 hours, and removal must be verified rather than assumed | Retention periods per tenant, compactor health, and whether removal is confirmed on disk or in the bucket |
Where the filesystem backend breaks down
Local disk works for a small, single-server Loki install, but the same simplicity that makes it easy to start leaves the data without replication, separate durability, or a clear growth path. The cards below cover what to plan for before you rely on the filesystem store and what to confirm in your own environment.
No replication across disks
The filesystem backend keeps chunks on a single disk or volume with no copies elsewhere. If that disk fails, the chunks stored on it are lost, and Loki has no other copy to recover from. Confirm whether your server's storage is redundant, such as a mirrored or RAID-protected volume, and whether that protection is something your team has tested. A lost disk means lost chunks.
Loki storage docsDisk sizing without a durability layer
Because the disk holds both the log data and the index files, growth goes straight to the local volume. Nothing sits between Loki and the disk to absorb a failure, expand capacity or move data elsewhere. Ask who owns capacity alerts for the volume, how fast your log volume grows, and what happens when the disk fills during an incident.
Backups your team must design
Loki does not provide a backup process for the filesystem store. Your team must decide what gets copied, how often, where the copies live, and how a restore is tested. A backup taken while Loki writes can capture inconsistent files, so the procedure should be checked against the Loki documentation for your version before it is trusted.
Single-binary ceiling
The filesystem store pairs naturally with monolithic mode, which runs all Loki components in one process. The official deployment guidance places monolithic mode at roughly 20 GB of logs per day, so a server that grows past that range needs a different deployment mode. Measure your daily ingest against that figure before you settle on a single host.
Moving data when scaling out
Chunks written to a local folder do not move on their own when you add read or write components or a second server. Scaling out usually means changing the storage backend to object storage and planning how existing data is kept or aged out. Confirm the target storage, the cut-over date for the new schema period, and how queries will reach data written before the change.
Retention that needs verifying
Retention is disabled by default, so Loki keeps logs indefinitely until you enable it on the compactor and set rules. Filesystem disks fill quietly when retention is missing or misconfigured. After enabling it, check that old chunks are actually removed from the folders for each tenant, and that the disk usage trend matches the retention period you intended.
Retention docsSetting up filesystem storage for a single-binary Loki install
This sequence takes a small Loki install from a sizing decision to a verified chunk on a dedicated volume, with tenancy, a fronting proxy and a tested restore in place. Each step ends with a check so the team knows it can move on.
Confirm the monolithic target and daily volume
Confirm that a single-binary deployment fits the workload before anything is provisioned. Loki's documentation places monolithic mode at up to about 20 GB of logs per day, so the team should measure real ingest from the sources that will ship logs, not estimates. Record the expected daily volume, retention period and number of sources, and keep the figures with the design record. Done when the team has a measured daily volume below the monolithic ceiling and has agreed in writing that a move to simple scalable or microservices mode will be revisited if growth crosses it.
Provision a dedicated volume with backups
Create a volume used only by Loki for chunks and index files, sized from the measured daily volume multiplied by the retention period, plus headroom for growth and compaction. Keep it on a separate filesystem from the operating system and from other services so a full disk cannot break the host. Because the filesystem backend is unreplicated and susceptible to data loss, define a backup target and schedule outside the host before the first log is written. Check that the backup job completes and that the backup lands in a location the Loki host cannot overwrite.
Set the storage directory in configuration
In the Loki configuration file, point the filesystem object store at the dedicated directory and confirm the schema_config period uses that object store. Set the directory so the Loki service user owns it with write access and no other account can modify it. Restart Loki and confirm in the startup logs that the object store initializes without permission errors. Done when Loki starts cleanly and the directory exists and is writable only by the service account.
Choose tenancy mode and set auth_enabled
Decide whether one team owns all logs or whether separate teams, customers or environments need isolated data. In single-tenant mode, leave auth_enabled off so Loki writes chunks into the fake folder and does not require the X-Scope-OrgID header. If you need multi-tenancy, set auth_enabled to true and plan one folder per tenant, since each tenant is identified by that header on every request. Record the choice, because switching later changes how clients must send data. Done when the setting matches the decision and the team has documented the header or folder convention.
Place an authenticating reverse proxy in front
Loki has no built-in authentication layer, so run an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it, and bind Loki itself to a private interface. The proxy should enforce identity for writes and reads, and in multi-tenant mode it should be the only component allowed to set or pass the tenant header. Test that an unauthenticated request is refused and that an authorized request reaches Loki. Done when direct access to the Loki port from outside the host fails and proxied requests succeed.
Send a test log and locate the chunk
Send one test line through the same path production clients will use, such as Grafana Alloy or another supported client, carrying the tenant header if multi-tenancy is on. Wait for the ingester to flush, then list the storage directory. In single-tenant mode the chunk should appear under the fake folder, and in multi-tenant mode under the folder named for the tenant. Query the line back in Grafana or with the API. Done when the chunk exists in the expected folder and the test line returns from a query.
Verify a restore from backup
Restore the most recent backup to a separate host or a scratch directory, start a Loki instance pointed at the restored data, and query the test line and a sample of older lines. Confirm the restored index references the restored chunks and that results match the original. Record how long the restore took and who runs it, so the runbook reflects the actual process. Done when the restored instance returns the same results as production for the sampled queries. A backup that has never been restored is not yet a recovery plan.
Signs it is time to move to object storage
Move off the filesystem store when the reasons for keeping data on local disk no longer hold. The first trigger is volume. Loki's documentation places the monolithic deployment mode at up to about 20 GB of logs per day, so a single-binary install that is approaching that figure should be treated as a capacity plan, not a stable state. Track ingestion per day over several weeks rather than from a single peak, and check retention too, because the chunk footprint on disk grows with how long data is kept. The second trigger is durability. The filesystem backend is unreplicated, so a failed disk takes the chunks with it. If the business now needs logs to survive a disk or host loss, or to be restored from a copy, the filesystem store cannot meet that requirement on its own.
The third trigger is the deployment mode. If the Loki design is moving toward separate read and write paths, or toward the microservices mode for very large clusters, the storage choice has to change with it, since those modes are built around shared object storage. Plan this carefully: the Loki documentation states that simple scalable deployment mode is being deprecated and will be removed with the Loki 4.0 release. A team that adopts simple scalable mode today on local volumes should map a path to either microservices or an object store before that release date, and should confirm the current release timing with the Loki upgrade guidance. The fourth trigger is operational policy, such as a requirement that storage be replicated, backed up or managed by a cloud provider. Confirm which of these your organization requires, then read the Loki storage documentation to see which supported object stores match them.
Security and operational considerations on local disk
Filesystem storage moves responsibility for protection, access and recovery from a managed object store to your team. The cards below cover what you must confirm on the host, at the proxy and in your backup routine before Loki holds data you cannot afford to lose.
File permissions on the storage directory
Loki writes chunks and index files into the configured directory, and anyone with read access to that path can read the log content directly, bypassing Loki's query layer and any proxy in front of it. Confirm that only the Loki service account can read and write the directory, that parent directories are not world-readable, and that interactive administrator access is logged. Check the ownership after every package upgrade or container volume change, since these often reset it.
Filesystem docsEncryption at rest through the volume
Loki does not encrypt chunks on disk itself in this configuration, so protection depends on the host or volume layer. Confirm with your platform team whether the disk, LVM volume or Kubernetes persistent volume is encrypted with keys your organization controls, and where those keys are stored and rotated. Include the disks used for backups and snapshots, since copies often leave the encrypted path unnoticed.
Filesystem docsBackup and restore testing
The filesystem backend is unreplicated, so one failed disk can remove every chunk and index the install holds. Back up the storage directory on a schedule, store copies off the host, and restore them into a separate Loki instance to prove that queries return the expected results. Record how long a restore took in your environment so the recovery time you promise matches what you have measured.
Storage configurationAuthenticating reverse proxy
Loki has no built-in authentication layer, so a reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium must sit in front of it and authenticate every request. Confirm that Loki is not reachable on its listening port from the network, that the proxy enforces your identity provider's sign-in, and that it is the only component permitted to set the X-Scope-OrgID header. Test with a request that omits the header and with one that spoofs another tenant.
Authentication docsFolder-based tenant isolation
In multi-tenant mode each tenant's data sits in its own folder, so isolation is a file layout decision enforced only as far as the proxy and Loki accept the tenant ID. If clients can choose any X-Scope-OrgID value, one team can query another team's folder. Map each identity to a fixed tenant at the proxy, and confirm that single-tenant installs with the fake folder are never exposed to more than one audience.
Multi-tenancy docsDisk capacity monitoring
Without retention enabled, logs accumulate indefinitely, and a full disk stops ingestion or corrupts the write path. Alert on free space well before the volume fills, track growth per tenant directory, and confirm that retention settings are applied and that the compactor runs as expected. Agree in advance who responds to the alert and how far the volume can be extended on your platform.
Retention docsQuestions teams ask before choosing filesystem storage
Is local disk acceptable for Loki in production?
Local disk can be acceptable for a small, single-binary install where losing some recent logs is tolerable, but it is not the setup Loki's documentation recommends for production. The filesystem object store keeps chunks in a directory on one host with no replication, so a disk failure can lose data. The Loki docs list Amazon S3, Google Cloud Storage and Azure Blob Storage as recommended production object stores, and note that the local filesystem is supported but not typically recommended for production. Decide with your risk owner whether unreplicated storage matches your recovery expectations, and document that decision alongside your backup and restore plan.
How long can a single-binary Loki install run on filesystem storage before it needs migration?
There is no fixed date. The monolithic deployment mode is documented for up to about 20 GB of logs per day, so daily ingest volume is the first limit to check against your own numbers. Other drivers include how long you retain logs, how many tenants share the host, query load, and how much disk your single host can hold without replication. Measure your ingest and retention for a representative period, then compare against the monolithic guidance and your recovery requirements before deciding how long the setup is suitable.
What does moving from filesystem storage to object storage involve, and who does it?
The move involves choosing a supported object store, adding a new schema period so new data goes to the new store, migrating or accepting the loss of data already on the old disk, and updating storage configuration, credentials and retention settings. Your internal team can do this if they own Loki configuration and the target bucket. A partner is useful when the migration must be planned around retention, backups and cutover windows. Ask any provider to state in writing which data moves, which stays on the old volume, and who verifies queries after cutover.
How much work does a filesystem setup need from the internal team?
The ongoing workload is small in configuration terms but real in operations. Your team must size and monitor the disk, set retention on the compactor, back up the chunk directory and index, test restores, plan host patching and keep Loki on a supported release, such as v3.7.8 listed on the releases page. Each of these tasks recurs, so the question is whether someone owns them on a schedule. Count the hours for monitoring, restore tests and upgrades per quarter to see whether the setup fits your team's capacity.
Are backups of the chunk directory enough to protect Loki data?
Backups of the chunk directory are necessary but not sufficient on their own. A usable backup also needs the index, the schema and storage configuration, and the retention settings, all taken at a consistent point so a restore produces a working Loki. Test a restore on a separate host and run queries against the restored data, because an unrestored copy proves nothing. Keep backups off the same disk and host, and record how long a restore takes so you know your actual recovery time.
How do I confirm tenant folders are created correctly on the filesystem?
With auth_enabled set to true, Loki identifies tenants by the X-Scope-OrgID header, and the filesystem object store keeps objects in a configured directory with one folder per tenant. In single-tenant mode, chunks go in a folder named fake. Confirm the configured directory, send a test log with a known tenant header, then check that a folder named for that tenant appears under the directory and that a query with the same header returns the entry. Also confirm that a query with a different header does not return it.
What drives the effort and cost of an outside partner for this work?
Cost follows the written scope. The main drivers are the target environment (single host, Kubernetes or cloud accounts), the number of tenants and log sources, the retention rules you need, whether a migration to object storage is included, the backup and restore testing you require, and how much documentation and handover you want. DeployOpen does not publish a price list, so ask for a quote built from a written scope that lists these items. Separate one-time work such as design, installation and migration from recurring work such as upgrades and monitoring support.
Does DeployOpen issue compliance attestations for Loki storage?
No. DeployOpen does not issue audit reports, attestations or certifications. It can prepare systems, controls and evidence, such as retention settings, backup records, restore test results and tenant access configuration, so that your compliance team and independent auditors can assess them. Agree the evidence list in writing before work starts, and confirm with your auditor which records they expect.
How writes and tenant folders flow on the filesystem store
The walk starts at the client or Grafana Alloy, which sends logs with the X-Scope-OrgID header to an authenticating reverse proxy. The proxy is the trust boundary: Loki has no built-in authentication, so the proxy must check identity before forwarding. The monolithic Loki binary then writes chunks into the configured directory, one folder per tenant, or into a folder named fake in single-tenant mode. A separate backup job copies that directory to storage outside the host. Check that the backup copy is tested for restores, because the filesystem store is not replicated.
Log writes pass the auth proxy, then land in per-tenant folders that a backup job copies.
How DeployOpen works on this
DeployOpen starts by checking whether a single Loki instance on local disk fits your log volume, retention and recovery needs. If it does not, the work moves to object storage in the same engagement, with the storage layout and backup approach agreed in writing before any build starts.
How we scope
- Confirm daily log volume, retention period, number of tenants and how many people query logs today.
- Decide between monolithic mode on a single host and a larger deployment, using the documented mode limits as a starting point.
- Write down the tenant folder layout, the single-tenant or auth_enabled choice and who owns the disk and backups.
How we build
- Configure the filesystem object store with a dedicated volume, directory ownership and per-tenant folders that match your access model.
- Set up an authenticating reverse proxy in front of Loki, since Loki has no built-in authentication layer.
- Test ingestion, queries from Grafana and restore of a chunk directory from backup before the system goes live.
How we hand over
- Deliver a written runbook covering disk capacity alerts, backup schedule, restore steps and the upgrade path.
- Document the trigger points for moving to object storage, such as needing replication or outgrowing a single host.
- Walk your operations team through the configuration files, tenant folders and retention settings the system depends on.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and monitoring are available as a retainer if your team wants a partner to keep the instance current.
- A migration to object storage can be scoped as a separate written engagement once the trigger points are reached.

