anonym.legal

By · Last updated 2026-06-05

Terug naar BlogTechnisch

GDPR-loganonimisering: debug-mogelijkheid behouden

Toepassingslogs verzamelen stilletjes e-mailadressen, IP's en rekeningnummers van gebruikers. Zo deelt u logs met derde partijen, aannemers en observeerbaarheidsplatforms zonder GDPR te overtreden.

June 5, 20267 min lezen
JSON logsGDPR complianceDevOps privacylog anonymizationdata minimization

PII verbergt zich in toepassingslogs

App-logs zijn een van de meest over het hoofd geziene GDPR-oppervlakken in engineering. Niet omdat engineers de wet negeren. Omdat gebruikersinformatie per ongeluk in logbestanden terechtkomt.

Eén JSON-verzoeklog kan vier PII-velden bevatten:

{
  "timestamp": "2025-11-14T09:22:13Z",
  "level": "ERROR",
  "endpoint": "/api/users/profile",
  "user_email": "sarah.johnson@company.com",
  "ip_address": "195.88.44.12",
  "account_id": "CUST-EU-447821",
  "error": "User sarah.johnson@company.com not found"
}

De e-mail staat in twee velden. Het IP is persoonsgegevens onder GDPR (als het herleidbaar is tot een persoon). De account-ID is persoonsgegevens in context.

Het log-retentieprobleem

Logs worden bewaard voor debuggen. Typische bewaarperiode: 30–90 dagen. Sommige observeerbaarheidsplatforms bewaren jaren aan logs.

GDPR Artikel 5(1)(e) beperkt bewaarduur. Logs met e-mailadressen of IP-adressen die langer dan nodig worden bewaard, zijn een overtreding.

Als logs naar derde partijen gaan — externe aannemers, observeerbaarheidsplatforms zoals Datadog of Splunk — wordt het een gegevensoverdracht die een DPA vereist.

Log-anonimisering bij bronverwerking

De benadering: anonimiseer PII in logs vóór opslag.

from anonym_legal import AnonymClient
client = AnonymClient(api_key=os.environ["ANONYM_KEY"])

def log_event(level, endpoint, user_email, ip, account_id, error_msg):
    # Anonimiseer velden die PII bevatten
    anon_result = client.anonymize(
        text=f"{user_email} {ip} {account_id} {error_msg}"
    )
    # Log geanonimiseerde versie
    logger.log(level=level, endpoint=endpoint,
               details=anon_result.anonymized_text)

Geanonimiseerde logs zijn volledig debugbaar: foutmeldingen, tijdstempels, endpoints en paden zijn intact. Alleen de identificerende informatie is vervangen.

Deze logs kunnen worden gedeeld met aannemers of externe platforms zonder GDPR-zorgen over retentie of overdracht.

Klaar om uw gegevens te beschermen?

Begin met het anonimiseren van PII met 285+ entiteitstypen in 48 talen.

About this page

We update this page when our platform or the law changes.

Read our founder note for how we work.

Each change shows up in the timestamp at the top.

Related reading

We follow these rules

  • GDPR (EU 2016/679).
  • ISO/IEC 27001:2022.
  • NIS2 (EU 2022/2555).
  • HIPAA safe harbor under 45 CFR § 164.514(b)(2).

Our promise

We do not sell your data.

We do not train models on your text.

We store your files in Germany.

You can delete your account at any time.

You own your work.

Where we run

Our servers live in Falkenstein, Germany.

We use Hetzner. They hold ISO 27001 certification.

All data stays in the EU.

Backups run every day.

Need help?

Email support@anonym.legal.

We reply within one business day.

How we test

We run a full check suite on every release.

Each surface gets its own sweep script and report.

Human reviewers spot-check the output each week.

We track recall and precision on a labelled set.

Bad runs block the deploy.

What we never do

  • We never sell your information to third parties.
  • We never train models on what you upload.
  • We never keep your work after you delete it.
  • We never share keys with any outside firm.
  • We never run ads inside the product.

Plans in plain words

We sell credits, not seats.

One credit covers one short job.

Long jobs use a few credits each.

You can top up at any time.

Unused credits roll over each month.

Read the plans page for current rates.

Who built this

A small team of engineers and lawyers built this.

We ship from Europe and work in the open.

Our founder note spells out why we started.

Where to start

How the parts fit

A browser add-on cleans text inside Chrome.

A Word plug-in handles drafts in Office.

A small desktop tool works on whole folders.

An agent protocol link feeds large models safely.

All four share one core engine and one rule set.

Words from our team

We started this work after a lunch about cookies.

One friend kept getting odd ads on her phone.

We asked why a court file leaked through a draft.

We sketched the first build on a napkin that week.

By month three we had a tiny demo for a friend.

She used it on her first case the next day.

Common questions we hear

Can the tool read scanned PDFs? Yes, with OCR.

Does it work on long files? Yes, in small chunks.

Can I roll my own rule set? Yes, save it as a preset.

Does it run offline? The desktop build runs offline.

Do you keep my files? No, the cloud build wipes after each run.

Will it learn from my work? No, we never train on inputs.

A short tour of the workflow

Upload a file or paste a snippet of prose.

Pick the entities you want gone from the draft.

Choose a method: replace, mask, hash, encrypt, or redact.

Press run and watch the side panel show each hit.

Skim the result and tweak any rule that misfired.

Save the cleaned file or send it to a teammate.