Sensitive data scanner: mask personal data before it is stored

Email addresses, IBANs, card numbers, passwords and tokens, phone numbers and IPs are masked in logs and spans at ingest. What never reaches storage cannot leak from it.

Pipeline with a sensitive-data stage for logs and spans, before every other rule
Stored logs contain only the masked values
Audit trail: who changed which rule, and when
Detects
Email, IBAN, credit card, passwords/tokens, phone, IP
When
At ingest, before storage
Signals
Logs and spans
Not included
Recognition of names or free-text personal data
Product tour

How your team works with Sensitive data scanner

From the masking stage in the pipeline to the stored logs, exports and audit records: these views come from the Obseria app.
01 / 05

Sensitive data is the first stage

Add masking rules for logs and spans in the sensitive-data stage. They run before spam filters, metrics and sampling.

  • Logs and spans
  • Input, reduced and stored
  • Rules in the interface or as JSON
Sensitive data is the first stage
02 / 05

Search what was actually stored

Search stored logs for patterns you expect to be masked, filtered by service, environment, source and host.

  • Full-text search
  • Facets with match counts
  • Pattern view
Search what was actually stored
03 / 05

Attributes and URLs in traces

Span attributes such as URLs, user agents or client addresses are covered by the masking stage for spans.

  • Attributes on every span
  • HTTP URL and host
  • Resource attributes
Learn more
Attributes and URLs in traces
04 / 05

Exports contain masked values only

Because masking happens at ingest, files exported as CSV, TXT, JSON or YAML never contain the original values.

  • Filter before export
  • Preview row count
  • curl command with API key
Learn more
Exports contain masked values only
05 / 05

Who changed which rule

The audit trail records actions, actors, resources and results, so changes to rules remain traceable.

  • Facets for action and actor
  • Refused and failed requests
  • Export of the last 30 days
Learn more
Who changed which rule
Capabilities

Privacy as the first stage of ingest

Masking runs before every other pipeline rule, next to filtering, sampling and conversion to metrics, with the effect visible per signal.
Sensitive data scanner

Sensitive data scanner

Masks email addresses, IBANs, credit cards, passwords/tokens, phone numbers and IPs in telemetry at ingest, before storage.

Audit trail

Audit trail

Records who changed what in the tool and when.

Learn more →
  • Observability pipelines
  • GDPR data processing agreement (DPA)
  • EU data residency
How it works

From raw telemetry to masked storage

Five steps that keep personal data and secrets out of your logs and traces.
  1. Raw input · example
    01

    Data arrives

    Logs and spans arrive via OpenTelemetry or log collectors, sometimes with personal data or tokens inside.

    • Email found
    • Card number found
    • Token found
    02

    Scan

    The first pipeline stage looks for email addresses, IBANs, card numbers, passwords and tokens, phone numbers and IPs.

  2. Masked · illustrative
    03

    Mask

    Matches are replaced by a mask before any other rule runs and before anything is written to storage.

  3. Stored without originals
    04

    Store and use

    Search, notebooks, dashboards and exports work on the masked data only.

  4. Audit
    Masking rule changedActor: user_demo_01 · Succeeded
    In the audit trail
    05

    Review

    Search stored data for patterns that should be masked, and check rule changes in the audit trail.

In depth

How Sensitive data scanner works

What is masked

Six categories of sensitive values

The scanner looks for values with a clear structure that often end up in telemetry by accident: email addresses, IBANs, credit card numbers, passwords and tokens, phone numbers and IP addresses.

These cover the two big risks in logs. Contact and payment data are personal data under the GDPR. Passwords, API keys and tokens are secrets that would give anyone reading the logs access to other systems.

Matches are replaced with a mask. The rest of the log line or span stays intact, so the record remains useful for debugging.

  • Email addresses and phone numbers
  • IBANs and credit card numbers
  • Passwords and tokens
  • IP addresses
At ingest

Masked before storage, not only on screen

Masking at display time only hides values in the interface; they remain in storage, in backups and in exports. Obseria masks at ingest, so the original value is never stored.

Sensitive data is the first stage of the Signal Control pipeline. Rules run from left to right, so masking happens before spam filters, before conversion to metrics and before sampling. No later rule, metric or sample ever sees the original value.

Everything downstream benefits automatically: log search, trace views, notebooks, dashboards and file exports all contain the masked value only.

  • First stage of the ingest pipeline
  • Original value never stored
  • Applies before filters, metrics and sampling
  • Search and exports show masked values
Logs & spans

Log lines and span attributes

Personal data does not only appear in log messages. URLs with query parameters, HTTP headers and custom attributes on spans are just as common. The pipeline therefore has a sensitive-data stage for logs and one for spans.

The overview shows the input of each signal, how much the rules changed and how much was stored, for the last hour, 24 hours, 7 or 30 days. Masking rules are added directly in the stage where they belong.

Rules can be created in the interface or imported as JSON, which makes it easy to keep the same configuration across several organisations.

  • Masking stage for logs
  • Masking stage for spans
  • Overview per signal and time range
  • Rules in the interface or as JSON
GDPR

One building block for your data protection

Masking at ingest is a technical measure you can describe in your data protection documentation. Obseria adds further building blocks: a data processing agreement under Art. 28 GDPR, the choice of an EU data region per organisation and an audit trail that records who changed which configuration.

Be precise about what masking does. It catches structured values reliably. It does not recognise names, postal addresses or other personal data written in free text, and it does not make your processing compliant on its own.

Combine it with clean logging in your code, access control in Obseria and sensible retention, and the amount of personal data in your telemetry drops considerably.

  • DPA under Art. 28 GDPR
  • EU data region per organisation
  • Rule changes in the audit trail
  • No claim of automatic compliance
Integrations

Masking for every source

The scanner applies to logs and spans from any source that reaches Obseria: OpenTelemetry, Fluentd, Vector, Logstash, Kubernetes, Docker and host logs.
  • OpenTelemetry
  • OTel Collector
  • Fluentd
  • Vector
  • Logstash
  • Kubernetes
  • Docker
  • Linux
  • NGINX
Guide

Masking personal data in logs: a practical guide

Why sensitive data ends up in telemetry

Nobody plans to write credit card numbers into log files. It happens anyway. A developer logs a full request body while debugging and forgets to remove the line. An error message contains the email address of the user who triggered it. A URL carries a token as a query parameter, and the web server logs every URL. A span attribute stores the client IP. Over time, logs and traces collect a surprising amount of personal data and secrets.

That is a problem for two reasons. Personal data in logs falls under the GDPR like any other personal data: it needs a purpose, a retention period and protection. And secrets such as passwords or API tokens in logs are a security risk, because far more people can read logs than should know those secrets.

What a sensitive data scanner does

A sensitive data scanner inspects telemetry for patterns that look like sensitive values and replaces them with a mask before the data is stored. Typical categories are:

  • Contact data: email addresses and phone numbers.
  • Payment data: credit card numbers and IBANs.
  • Secrets: passwords, API keys and tokens.
  • Network identifiers: IP addresses, which count as personal data in many cases.

The crucial word is before. Masking at display time hides values on screen, but they are still in storage, in backups and in exports. Masking at ingest means the original value never reaches storage at all.

Good practice for masking personal data in logs

  • Fix it at the source where you can. The best sensitive value is the one that is never logged. Review logging statements and avoid logging full request bodies.
  • Mask at ingest as a safety net. Code changes take time and new mistakes will happen. A scanner in the ingest pipeline catches what slips through.
  • Cover all signals. Personal data appears in span attributes and URLs just as often as in log lines.
  • Check regularly. Search stored logs for patterns you expect to be masked, especially after new services go live.
  • Document it. Masking at ingest is a technical measure you can describe in your record of processing activities and in your data protection documentation.
  • Limit access anyway. Masking reduces risk, it does not replace roles and permissions.

What pattern-based scanning cannot do

Pattern-based scanning is reliable for values with a clear structure: an IBAN, a card number or an email address look the same everywhere. It cannot reliably recognise free-form personal data such as names, postal addresses or health information written in a sentence. For those, the fix has to be in the code that writes the log. Be honest about this in your documentation: a scanner reduces risk, it does not guarantee that no personal data is stored.

Rolling out masking step by step

Introducing masking in an existing environment works best in a few steps:

  1. Take stock. Search a sample of your stored logs and spans for email addresses, card numbers, IP addresses and tokens. The result shows which services are affected and how often.
  2. Agree on the categories. Decide with your data protection officer which categories must be masked everywhere and whether there are justified exceptions, for example IP addresses needed for security analysis.
  3. Activate the rules. Start with the categories that are clearly never needed in plain text, such as passwords, tokens and card numbers.
  4. Verify. Search newly stored data for the same patterns again. Matches show where a rule does not apply yet.
  5. Fix the sources. Use the findings to remove sensitive values from logging statements in the code, so masking becomes a safety net rather than the only protection.
  6. Document. Record which categories are masked and since when.

The sensitive data scanner in Obseria

In Obseria, the sensitive data scanner is the first stage of the Signal Control pipeline, which processes telemetry at ingest. It masks email addresses, IBANs, credit card numbers, passwords and tokens, phone numbers and IP addresses before the data is stored.

The pipeline overview shows a "Sensitive data" stage for logs and for spans, where you add masking rules. Because it is the first stage, the values are masked before any later rule runs: before spam filters, before conversion to metrics, before sampling. What is stored, searched, exported or shown in a notebook afterwards contains the masked value only.

The same overview shows input, reduction and stored volume per signal, so masking sits next to the other ingest rules instead of in a separate tool. Rules can be created in the interface or imported as JSON.

Together with the data processing agreement under Art. 28 GDPR, the choice of an EU data region and the audit trail that records configuration changes, masking at ingest is one building block for your own GDPR documentation. It does not make your use of Obseria compliant on its own; that depends on your processes as well.

FAQ

Questions about Sensitive data scanner

Answers on features, setup and what is not included yet.
Contact us

Sensitive data scanner FAQ

Email addresses, IBANs, credit card numbers, passwords and tokens, phone numbers and IP addresses.

At ingest, before the data is stored. It is the first stage of the pipeline, so the original value is never written to storage and no later rule sees it.

Yes. The pipeline has a sensitive-data stage for logs and one for spans.

No. The original value is not stored, so it cannot be recovered from Obseria. If you need a value for debugging, find it in the source system instead.

No. Masking applies to data arriving after the rule is active. Data stored before remains as it is until it reaches the end of its retention.

Not on its own. Masking at ingest is a technical measure you can document. Together with the DPA, the EU data region, access control and your own processes it supports your GDPR documentation.

Configuration changes are recorded in the audit trail with action, actor, resource and result.

Recognition of names, postal addresses or other free-text personal data, scanning of already stored data, and reversible tokenisation of masked values are not part of the scanner. Metrics are not covered by the masking stage.

Contact

See Sensitive data scanner in action

In 30 minutes we show you how Obseria works in your environment and answer your questions on setup, privacy and pricing.

  • No obligation, free of charge
  • Usually answered within one business day
  • Data in the EU
Your contact
Your contactObseria team

* Required field. By submitting, you agree to the processing of your details as described in our Privacy Notice