How GDPR erasure and storage limitation apply to logs in Loki
Logs often carry IP addresses, user IDs, email fragments and other personal data, so the team running Loki has to limit how long those entries are kept and remove them when a valid erasure request arrives. Article 5(1)(e) of the GDPR asks that personal data be kept in identifiable form no longer than the processing purpose requires, and Article 17(1) requires erasure without undue delay on defined grounds, such as when the data is no longer needed or consent has been withdrawn. Loki's retention settings, compactor and delete API help with both duties, but they only work once someone has decided what the logs are for. The controller still sets the purpose, the lawful basis and the retention periods. DeployOpen can prepare the configuration and the evidence that shows how it was set up, but it does not certify compliance, and the GDPR itself requires no audit or certificate.
Start by mapping each log source to a purpose and a retention period. Retention in Loki is disabled by default, so logs are kept indefinitely until retention_enabled is set on the compactor. Retention can be applied globally, per tenant or per stream selector, and each stream rule must be at least 24 hours. A practical pattern is to give security audit streams a longer period and application debug streams a shorter one, each justified in writing. For targeted erasure, the delete API removes entries matching a stream selector and time range, which suits a request tied to one user over a known window. Confirm with your Loki version how deletion requests are enabled, how they are authorized and how long processing takes before you promise a data subject a deadline. Restrict who can submit delete requests, and log those requests themselves.
Keep personal data out of labels. Labels define streams, so a user ID or IP address used as a label creates a new stream for every value, which makes targeted deletion harder to reason about and expensive to run. Put identifiers in the log line or in structured metadata, and test a sample of ingested logs for common identifiers before you widen a pipeline. Finally, document what deletion cannot reach. Backups of object storage, copies exported to a SIEM or ticketing tool, and data already shipped to a third-party analytics service all sit outside Loki's compactor. Record where those copies exist, their own retention, and the steps used to handle them, so your records of processing match what the system actually does.
Mapping GDPR requirements to Loki capabilities and configuration
This table maps the GDPR provisions that matter most for logs to the Loki settings that address them, and to the decisions the controller still owns. Read each row as a question to answer for your own deployment. The main takeaway is that Loki supplies the mechanisms, while retention periods, erasure procedures and transfer assessments remain the controller's responsibility.
| GDPR requirement | Loki capability and configuration | Controller decision or check |
|---|---|---|
| Article 5(1)(e) storage limitation | Retention is disabled by default; set retention_enabled so the compactor applies periods. | Set each period from the documented purpose. The GDPR sets no fixed period. |
| Article 5(1)(e) by stream | Retention can be set globally, per tenant or per stream selector, with a 24-hour minimum per rule. | Separate streams that carry personal data so they can have shorter periods. |
| Article 17(1) erasure | Retention removes data on schedule. Targeted erasure uses the delete API. | Confirm the delete API's prerequisites, behavior and version in the Loki docs before relying on it. |
| Personal data in labels | Labels define streams and drive retention and selection, so identifiers there spread widely. | Keep names, email addresses and account IDs out of labels. Review pipeline rules in Alloy. |
| Article 32 access control | Set auth_enabled and use X-Scope-OrgID. Loki has no built-in authentication. | Place an authenticating reverse proxy in front. Limit who can query and who can delete. |
| Chapter V transfers | Chunks and the index sit in the object store you choose, wherever that store runs. | Storage outside the EEA, or remote access from a third country, is a transfer under EDPB Guidelines 05/2021. |
| Backups and replicas | Retention settings in Loki do not reach copies held by other systems. | Document where copies exist, how long they live and how their deletion is handled. |
Setting retention periods that match the purpose of each log
Retention in self-hosted Loki is off until you turn it on. The compactor applies retention only when retention_enabled is set, so a fresh cluster keeps every log indefinitely unless someone configures a limit. For GDPR purposes, that default is the first thing to fix: storage limitation under Article 5(1)(e) requires personal data to be kept no longer than necessary for the purpose it was collected for, and an indefinite default cannot be justified against that test. Confirm the setting in your compactor configuration and in each environment, because a value that works in staging may not have been carried into production.
Loki lets you set retention globally, per tenant, or per stream selector, and each stream rule must be at least 24 hours. The practical design choice is to separate logs by purpose before you choose periods. Security audit events, operational logs and debug output usually have different justifications and different necessary lifetimes, so route them into distinct streams or, where ownership differs, distinct tenants. A stream selector can then give security events one period and debug output a much shorter one, while per-tenant limits keep one business unit's needs from setting another's period. Check the current selector syntax and rule ordering in the Loki retention documentation before you write rules, since overlapping rules are where unintended retention usually comes from.
Loki enforces the periods you set but cannot decide them. The controller must document each period and the reason for it, such as the legal or contractual duty that requires a security log to be kept, or the operational need that justifies a short debug window. Record the purpose, the stream or tenant it applies to, the configured value, the owner who approved it and the review date in your records of processing. Ask your legal or privacy team to confirm each justification, because an auditor or supervisory authority will test whether the period in configuration matches the one in the documentation.
Configuring Loki for erasure and storage limitation
This sequence turns a GDPR position on personal data in logs into Loki settings: sources are classified, retention is set per purpose, access is restricted, and erasure is tested and written down before anyone relies on it. The result is a configuration and a procedure that a privacy reviewer can follow and check.
Classify log sources by personal data content
The privacy lead and the platform owner list every log source that will reach Loki and record whether it carries personal data, such as user identifiers, IP addresses, email addresses, names or free-text fields. For each source, note the purpose it serves (security monitoring, operations, troubleshooting) and the systems that produce it. This is done with the application owners, since they know which fields hold user input. The step is complete when each source has a documented personal data flag and a named owner.
Decide retention periods for each purpose
For each source and purpose, the privacy lead sets the period the logs are needed and the reason for it, in line with the storage limitation principle in Article 5(1)(e) of the GDPR. Sources kept for different purposes get different periods, so security logs are not held as long as debug output simply because they share a cluster. Legal or security teams should confirm any minimum period imposed by another law or policy, because it may override a shorter limit. The output is a retention register with one row per source, purpose and period, signed off by the data protection owner.
Enable the compactor and retention in configuration
The platform engineer sets up the compactor and turns on retention, since Loki keeps logs indefinitely until retention_enabled is set. The retention settings are then defined as global, per-tenant or per-stream rules, matching the register from the previous step. Each stream rule must be at least 24 hours, so short-lived debug data needs the same treatment as any other source. Confirm the exact configuration keys in the Loki retention documentation for the release in use. The step is done when a test stream is removed after its rule period in a non-production environment.
Set per-tenant and per-stream rules
Using the register, the platform engineer maps each tenant (team, environment or customer) and each stream selector to its retention rule. Sources with personal data are placed in their own tenant or selected by stream labels, so that a shorter period does not depend on remembering to apply it manually. Rules are written as code in version control so changes are reviewed. The check is a configuration review that confirms every source in the register has exactly one matching rule.
Enable auth_enabled and an authenticating proxy
The platform engineer sets auth_enabled to true so Loki runs in multi-tenant mode and requires the X-Scope-OrgID header on every request. Loki has no built-in authentication layer, so an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium is placed in front of it, and it must be the only route to Loki. Only the proxy should be able to set tenant headers for end users. The step is complete when an unauthenticated request is refused and a user without rights to a tenant cannot query it.
Restrict who can call the delete API
The security team defines a short list of roles allowed to request targeted deletion, usually the data protection owner and a small group of platform operators. The proxy and the identity provider enforce this list, and deletion requests are logged with the requester, the tenant, the selector and the reason. Confirm the exact delete endpoint, its required components and whether it is available in the deployment mode in use by reading the Loki documentation for the release in use, because the API depends on version and mode. The check is a test showing that a user outside the list receives a refusal and that the attempt is recorded.
Test erasure on a non-production tenant
The platform engineer loads known test records, including a unique test identifier, into a non-production tenant that mirrors the production sources. The data protection owner then issues a targeted deletion request for that identifier and confirms, by query, that the matching entries are no longer returned after processing. Results are compared with what the documentation says about when deletion takes effect, and any gap is noted. The step is done when the test is repeatable and the evidence (queries, timestamps and request logs) is stored.
Record the erasure procedure and its limits
The privacy lead writes the procedure as a runbook: who may request erasure, how the request is validated, the commands and proxy steps to run, how the result is verified and how the request is closed. The runbook also states what deletion in Loki cannot reach, such as copies in backups, exports, dashboards cached elsewhere and logs already forwarded to other systems, and how those are handled. The output is a versioned document, reviewed each time the Loki version changes.
Why personal data in labels makes erasure harder
Personal data in Loki labels creates problems that log lines do not. Label values shape how streams are formed, stored in the index and queried, so the same identifier affects erasure, retention and cost at once. The cards below cover the risks and the pipeline checks that keep identifiers out of the index.
Identifiers as labels multiply streams
A label such as user_id or email creates a separate stream for each distinct value. A single data subject may then be spread across many streams, and an erasure request has to find every one of them. Confirm with the Loki storage docs how the delete API selects streams by label matcher, and test it on a non-production tenant before you rely on it.
Loki retention docsLabel values persist in the index
Label values are stored in the index as well as the chunks, so removing a log line does not automatically remove the identifier from index entries. Ask your team to confirm exactly what the compactor and delete path remove from the index, and document any residue that remains. This is the point where erasure claims most often go beyond what the system can prove.
High cardinality raises cost
Each new label value adds index entries and can create many small chunks, which increases storage and query overhead. An unbounded field such as a session or account identifier grows with your user base over time. Retention periods matter less when the index itself becomes the largest cost, so review label sets before ingestion scales.
Review Alloy pipelines before ingestion
Grafana Alloy sits between your sources and Loki, so it is the right place to drop, hash or truncate identifiers before they reach the index. Map each source to the fields it emits, decide which ones are needed for troubleshooting, and remove the rest. Keep a written record of each transformation so the controller can show what was processed.
Loki send data docsKeep personal data in log lines
Structured metadata and log line content are not indexed as labels, which makes them a safer place for personal data that investigators still need. Access to that content can then be limited through tenant boundaries and query controls. Check that your Loki version and configuration support the structured metadata approach you choose, and confirm how deletion applies to each location.
Hash identifiers when lookups are needed
Where teams must correlate events for one person, a keyed hash of the identifier can replace the raw value as a label or field. This keeps correlation possible without storing the identifier itself, though a hash of a known identifier can still be personal data under GDPR. Document the key management and who can reverse the mapping.
How an erasure request moves through Loki
The request starts in the controller's own process, where a privacy team verifies the data subject and scopes the request. The operator then calls Loki through the authenticating reverse proxy, which must pass the X-Scope-OrgID tenant header to the delete API so the deletion stays inside one tenant. The delete request selects the stream and time range, the compactor applies the deletion, and the audit record of the request is kept separately. Check that the proxy enforces tenant identity, that the audit record avoids repeating the personal data, and that backups and object storage copies sit outside this path and are documented as a separate boundary.
Erasure flow through the active Loki path, with backups kept outside it.
Evidence to keep for a GDPR review of log handling
A GDPR review looks for evidence that log handling was planned, configured and tested, not only described. The items below connect the retention decision, the configuration that enforces it, and the records that show erasure happened as intended. Under the GDPR, the controller must be able to demonstrate compliance, and these records are how it does so. Neither DeployOpen nor the regulation issues an audit or certificate for this.
Documented retention periods with purpose
Keep a register that names each log source, the purpose it serves, the retention period chosen and the reason that period is no longer than necessary under Article 5(1)(e). Record who approved it and when it was last reviewed. Where a shorter period would serve the purpose, note why the longer one was kept. A reviewer will sample a stream and ask whether the stated purpose still justifies the stored data.
GDPR textRetention configuration as versioned code
Store the compactor settings, per-tenant limits and per-stream retention rules in Git so each change has an author, a reason and a review. Loki retention is disabled by default, so the commit history should show when retention_enabled was turned on and which selectors it applies to. Compare the deployed configuration against the repository regularly to catch drift.
- Minimum stream rule
- 24 hours
Delete request records with scope and timestamps
For every erasure request, record the data subject request reference, the selector or tenant used, the time range, the date the request was received and the date deletion was completed. Note any personal data identified in labels or content and how it was located. These records show that erasure under Article 17 was handled without undue delay and was limited to the data affected.
Access logs for the delete API and proxy
Keep logs from the authenticating reverse proxy in front of Loki and from the delete endpoint itself. Each entry should show who called the API, which tenant header was sent through X-Scope-OrgID, what was requested and the response. Protect these logs from the same users who can run deletions, since an erasure record that can be edited weakens the whole file.
Test results of erasure
Run a scheduled test that writes a marked test record, requests its deletion through the API, and confirms it can no longer be queried after processing finishes. Save the input, the command, the output and the date. Failed or partial tests should trigger a documented follow-up. Note that the test shows query-side removal only, so it should be paired with the backup statement described in your records.
Data flow record for logs
Map each path a log line takes, from the source through Grafana Alloy or another shipper, into Loki, onto object storage and into any backup or replica. Mark where personal data may appear and which locations are in scope for erasure. Include any location outside the EEA, since storage or remote access from a third country is a transfer under Chapter V. This record is the starting point for every other item in this list.
What deletion in Loki cannot reach and how to document it
Loki keeps compressed log chunks and its index in object storage, and the delete API and compactor-driven retention act on that data. A targeted delete removes matching log lines from the stored chunks for the selected stream and time range, but it does not rewrite every object that a log line touched, and it does not clear label values that still exist in the index for other streams. The controller should record which tenant, which selectors and which time windows were used, and show that the deletion request was completed and logged.
- Delete coverage: Targeted deletion applies to stored chunks that match the request, and the record should name the selector, time range and tenant used.
- Retention coverage: Retention is enforced by the compactor and is disabled by default, so the retention period must be explicitly enabled and documented.
- Index residue: Confirm with your Loki version how index entries and label values are handled after deletion, since this varies by configuration.
- Recorded justification: Document the purpose for each stream and why its retention period is no longer than that purpose requires.
- Verification: Run a query after deletion to confirm the matching lines no longer return.
Check the deletion steps against the retention and storage documentation for your exact Loki release before writing them into the record.
Backups and object storage snapshots are usually copies made on a schedule that the Loki delete path does not touch. Personal data removed from the live bucket can therefore remain in backups until those backups expire or are overwritten. The controller should document the backup schedule, the retention period of each backup tier and the restore procedure, and should explain why the remaining copies are still limited to what is necessary.
- What deletion misses: Erasure requests do not reach existing backup sets unless your process removes or rewrites them.
- Retention periods: Confirm the backup retention periods with your backup vendor or storage platform, and record them in the processing register.
- Restore controls: If a backup is restored, the erasure must be reapplied so deleted data does not return to production.
- Access limits: Restrict who can restore backups and log those restores, since restored logs carry the same personal data.
- Expiry evidence: Keep a record that backup sets containing the data have expired or been destroyed.
Ask the backup provider for the documented expiry behavior and any options for selective deletion, and record the answers as part of the justification.
Log pipelines often fan out. Grafana Alloy, Fluent Bit or other shippers can send the same events to Loki and to a SIEM, a data lake or an external monitoring service. Loki's delete path only acts on the Loki store, so every downstream copy needs its own deletion or retention rule. Where a destination is outside the EEA, the transfer conditions in Chapter V also apply to the copy and to any remote access from a third country.
- Fan-out inventory: List every destination that receives the same log stream, including the sending agent configuration.
- Separate deletion: Each destination needs its own erasure process, owner and evidence.
- Transfers: Record the location of each destination and any remote access from outside the EEA, since such access can be a transfer under EDPB Guidelines 05/2021.
- Data minimization at source: Filtering fields before they leave the agent reduces copies in every destination.
- Contract terms: Confirm each provider's retention and deletion commitments in its contract.
Ask each downstream provider for its documented deletion and retention behavior, and record the answer against the destination entry.
Grafana dashboards, saved queries, alert annotations and exported CSV or JSON files can each hold personal data taken from Loki. Deleting the source logs does not remove a copy that someone exported to a spreadsheet, a ticket or a shared folder. Dashboard snapshots and panel data may also be cached or stored in Grafana's own database, depending on how the instance is configured.
- Exports: Track who exports log data, where the files go and when they should be removed.
- Snapshots and caches: Confirm with your Grafana configuration whether snapshots or cached query results persist and for how long.
- Annotations and tickets: Log excerpts pasted into incident tickets or alerts are copies that the delete path cannot reach.
- Access control: Limit dashboards that show personal fields to roles that need them, and record that scope.
- Erasure follow-up: When a request is fulfilled, record whether any export or snapshot was found and removed.
Ask your team to confirm how Grafana stores snapshots and whether exported files are governed by a documented procedure.
Log events are briefly held in agent buffers, queues and network paths before they reach Loki. Personal data in these locations is not reachable by the Loki delete API, and it may be retained in disk buffers or retry queues if ingestion fails. The controller should document buffer sizes, retry behavior and the point at which data is considered stored, because this determines the window during which a deletion request might not yet be fully effective.
- Agent buffers: Record whether shippers such as Alloy or Fluent Bit write to disk and how long retries can continue.
- Failed ingestion: Events held during an outage may later be written to Loki, so erasure should be checked after recovery.
- Transport: Confirm that the connection to Loki is encrypted and that intermediary proxies do not log request bodies.
- Pipeline logs: Agent and proxy logs may include the same messages, so they need their own retention settings.
- Timing: Note the period between a request and the point when all in-flight data has cleared.
Check buffer and retry settings in your shipper configuration and record them, since those settings define the window the team must account for.
Where Loki does not solve the GDPR problem
Loki gives you retention, targeted deletion and access controls, but it does not make a log store GDPR compliant on its own. The cards below cover the decisions and gaps that stay with your organization: the legal basis, the classification of personal data, the access layer, backups, and where data and support access physically sit.
Lawful basis and purpose stay with you
Loki stores whatever it receives and has no notion of why a log line exists. Article 5(1)(e) ties retention to the purpose of processing, so the purpose and retention period for each log source must be written down by your organization before you set any retention value. Confirm who owns that decision and that it is recorded in your processing records.
GDPR textNo automatic personal data detection
Loki does not inspect log content to find names, email addresses, IP addresses or account numbers. Personal data reaches Loki inside message bodies and structured metadata unless your pipeline removes it first. Plan a classification pass for each source and confirm which fields your shipper can redact or drop before ingestion.
Authentication requires a reverse proxy
Loki has no built-in authentication layer, so anyone who can reach its HTTP port can query stored logs. Put an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it, and restrict direct access to the write and read endpoints. Without this layer, erasure controls do not protect data from unauthorized reads.
Loki authentication docsBackups fall outside the delete API
A delete request removes data from the live store, but copies in object storage snapshots, replicas, backup sets and archives keep their own retention. Document how long each copy persists, whether it can be reached by a restore, and how a restore is handled so erased data is not reintroduced. Confirm the backup schedule with your storage and backup team.
Chapter V transfers of stored logs
If object storage sits in a cloud region outside the EEA, or a support engineer views logs from a third country, the arrangement may be a transfer under Chapter V. EDPB Guidelines 05/2021 treat remote access from a third country, even display-only support access, as a transfer. Map where logs are stored, replicated and viewed, and have counsel assess the conditions.
EDPB guidelines 05/2021Cloud choice needs counsel review
The EU Data Act and the EDPB transfer guidance both bear on which cloud provider and storage model you select for Loki chunks and indexes. Article 32 of the Data Act addresses third-country governmental access to non-personal data, and the Data Act switching rights affect exit planning. Ask counsel to review provider terms, jurisdiction and exit obligations before choosing object storage.
Where the log store sits and what that means for transfers
Where the log store sits decides whether a transfer happens, so the region of the object store and the paths administrators use to reach it belong in the record of processing. Under EDPB Guidelines 05/2021 (version 2.0), storing data in a cloud outside the EEA is a transfer, and so is remote access from a third country, even when the access only displays data on a screen for support or administration. For a self-hosted Loki deployment, that means the bucket that holds compressed chunks and the TSDB index (for example, an S3 bucket or Azure Blob container), the compactor that applies retention, and every engineer or vendor session that can read log content all need an explicit location. Log lines are a common place for personal data such as IP addresses, user identifiers and email addresses to appear, so the log store is not a neutral technical detail.
Confirm three things before the first log is shipped: the region of the object store and any replicas or backups, the countries from which administrators and support staff connect, and whether any third party such as a managed hosting provider or remote support firm can see log content. The Schrems II judgment (Case C-311/18, 16 July 2020) invalidated the Privacy Shield while keeping standard contractual clauses valid, but the EDPB Recommendations 01/2020 also state that where a provider's destination country has public authority powers beyond what is necessary and proportionate, no effective technical supplementary measure may be possible. The EU-US Data Privacy Framework adequacy decision (Commission Implementing Decision (EU) 2023/1795) remains in place, but the appeal pending as Case C-703/25 P means a US-based processor should not be treated as settled without review.
Before engaging a processor that runs or supports the Loki stack, the controller should assess third-country access exposure, including the scope of any foreign law that could compel disclosure, and record the outcome. This is an argument for documenting the decision, not legal advice, and the assessment should be checked with counsel for your jurisdiction. The record should list the bucket region, admin access paths, support pathways and the processor's assessment, so that a later question about where a log line about a customer was stored and who could see it has a written answer.
Questions teams ask before setting up Loki for GDPR erasure
How much effort does a self-hosted Loki GDPR setup take?
The effort depends mostly on the number of log sources, how much personal data reaches the pipeline, how many retention rules you need, how backups are built, and how much reverse proxy and SSO work sits in front of Loki. A single application with clean logs and one retention period is a small job. A platform with dozens of sources, mixed purposes and personal data in several fields is a much larger one. Loki's retention is applied by the compactor and is disabled by default, so the configuration and testing of retention rules is a core part of the work. Ask any partner to size the work from a written data inventory rather than from the number of servers alone.
Can an internal team set up GDPR erasure for Loki on its own?
Yes, an experienced platform or operations team can configure retention, the compactor, and the delete API if it has time to read the Loki documentation and test the results. The harder parts are usually outside Loki: deciding which personal data should never be logged, agreeing retention periods with the business and legal owners, documenting what deletion cannot reach, and building a reverse proxy and access model so only authorized people can run deletions. Teams without someone who owns those decisions often find the technical configuration is the easy part. A partner can take on the build while your staff keep the decisions.
What does the client need to provide for this work?
Plan to provide a data inventory that lists which log sources exist, what personal data each one can emit, and who uses the logs. You will also need the purposes for each log category, written retention targets from your privacy or legal owner, and a review of the legal basis and any transfer questions raised by where the logs are stored. On the technical side, you need access to the infrastructure where Loki and its object storage run, the identity provider used for operators, and the backup systems. Confirm each item with your legal and privacy teams before work starts, since the answers set the scope.
How long does a GDPR erasure setup for Loki take?
Duration follows scope. The main drivers are the number of log sources to review, how many retention classes you need, whether personal data must be removed from log lines or labels at ingestion, the backup architecture, and the time needed for legal review and sign-off. Loki's own configuration is usually not the longest step. Ask any provider for a schedule tied to named deliverables and written dependencies on your reviews, and check which steps depend on your organization's approval times. DeployOpen agrees timelines in writing as part of a fixed scope before work begins.
Can DeployOpen certify that our Loki setup complies with GDPR?
No. The GDPR requires no audit, attestation or certificate, and DeployOpen does not issue audit reports, attestations or certifications. DeployOpen can configure and document the controls, prepare evidence for your compliance assessments, and test that retention and access settings work as described. Compliance decisions remain with your controller and legal team, and any certification under Article 42 is issued by accredited certification bodies or supervisory authorities. Ask any provider to state in writing which deliverables are technical evidence and which are not.
What should we ask for in a written quote?
Ask for a scope statement listing the log sources, the Loki deployment mode and storage backend, the retention rules by purpose, and the deletion procedure. The quote should name each deliverable, including the retention configuration, the runbook for targeted erasure, the documentation of what deletion cannot reach such as backups, and the testing you will receive. Check who performs legal review, which party owns the data inventory, what is one-time work and what recurs, such as retention reviews or Loki upgrades, and what happens if scope changes. Confirm details of the Loki version and any Loki Enterprise features with the vendor before you sign.
Does the Loki delete API remove personal data from backups?
Not automatically. Targeted deletion through the delete API and retention through the compactor act on data in Loki's object storage, but copies in backups, snapshots and replicas follow their own lifecycle. Document which copies exist, how long each backup is kept, and how a restore could bring deleted records back. Confirm the exact deletion behavior and any limits of the delete API with the Loki documentation for your version before you write the retention statement for your records of processing.
How DeployOpen works on this
DeployOpen starts by mapping which log fields can carry personal data, what purpose each log stream serves and how long it is needed for that purpose. We then build retention, label hygiene and erasure procedures in your self-hosted Loki, and document what deletion cannot reach, so your privacy and security teams can review the setup.
How we scope
- Inventory log sources and identify fields that may hold personal data, such as user identifiers, IP addresses and free-text messages
- Agree a written retention period per stream or tenant, tied to the documented purpose of each log category
- Confirm which logs must be retained for other obligations, so erasure rules do not conflict with them
- Set the written scope, deliverables and timeline before work starts, with a quote following from that scope
How we build
- Configure retention in the compactor, with retention enabled and rules set globally, per tenant or per stream selector
- Review label schemas and move personal data out of labels into log lines or structured metadata where appropriate
- Put the delete API behind an authenticated reverse proxy with restricted roles and a logged erasure procedure
- Test retention expiry and targeted deletion in a non-production environment before enabling them in production
How we hand over
- Provide a written retention schedule that maps each log stream to its purpose and retention period
- Document the erasure runbook, including request intake, query scoping, deletion steps and evidence of completion
- Record what deletion cannot reach, such as backups, exported copies, archived object storage snapshots and downstream systems
- Deliver configuration, test results and operator notes so your team can run the controls without us
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover
- Review retention and label changes when new log sources or Loki versions are introduced
- Retest erasure and access controls after significant configuration changes
- Support your privacy and security teams with evidence, while independent auditors and certification bodies make their own assessments

