Sensitive Data Scanner
A feature that finds and redacts personal information and API keys that slipped into logs or APM after they have reached Datadog. This article organizes the division of labor with Observability Pipelines, which removes data before it arrives, the rules and redaction methods, and how to read per-scanned-GB billing.
What it does
It scans logs / APM spans / RUM events / events ingested into Datadog in the middle of processing, redacts values matching library rules or custom regular expressions using one of full redaction / partial redaction / hashing / masking, and attaches tags so they can be counted afterward. Scanning takes place before indexing.
When to use it
Use it when you want to stop leaks that you "notice after the fact," such as card numbers or email addresses mixed into app logs or authentication tokens carried in APM span attributes, before they appear on Datadog screens. The main operation is tracking which rule matched how many times in Findings and connecting that to notifications and access restrictions.
An everyday analogy
It is close to the person who blacks out documents before releasing them under a freedom of information request. They read the received documents (arrived logs) against set criteria (rules), black out names and account numbers before passing them on for viewing, and keep a record (tags) of where they redacted. The work of sending documents back to the writer before accepting them (redaction before arrival) belongs to a different person.
The layer that redacts after arrival - division of labor with the layer that removes before arrival
Sensitive Data Scanner (SDS) is the layer that scans and redacts logs and events in the middle of processing after they have reached Datadog's backend. The official documentation states explicitly that "data leaves your environment before it is redacted," and in exchange, it is positioned so that redaction is complete before the data lands in an index and appears on screen (as of September 2026, source: Sensitive Data Scanner). If you want to remove data before it leaves your environment, the tools are separate: the SDS processor in Observability Pipelines applies the same rules inside your own environment, and the Agent's log_processing_rules (mask_sequences) replace strings before sending (the Agent-side notation is in the log collection article). Since the reader's biggest question is "which one should redact," here is the decision table first.
| Layer | Where it runs | Scope | Suitable situation |
|---|---|---|---|
| Agent mask_sequences | The host emitting the logs (before sending) | Logs collected by that Agent | When the target to redact is a fixed string pattern and configuration can be distributed per host |
| Observability Pipelines SDS processor | The Worker inside your environment (before sending) | Logs passing through the Worker | When there is a requirement to remove data before it leaves the environment. Library rules can be used as is |
| Sensitive Data Scanner (cloud side) | Datadog's backend (at ingestion / before indexing) | Logs / APM spans / RUM events / events | When you want to see all data entering Datadog under rules in 1 place, including routes that do not pass through the Agent or Worker |
The 3 layers are not mutually exclusive; in practice, the natural layering is to catch with SDS whatever the before-arrival layers could not fully remove.
Scope is logs / APM / RUM / events - the scanning range differs per product
The cloud-side SDS can redact 4 kinds of data, and the scanning range differs per product. For logs, it is the entire message and attribute values, structured or unstructured; for APM, span attribute values only; for RUM and events, likewise event attribute values only (as of September 2026, source: Set Up Sensitive Data Scanner for Telemetry Data). Integer and floating-point values are not scanned; digits are scanned if they are stored as strings. Scanning targets other than for redaction include Amazon S3 buckets (the Agentless scanner reads inside your environment and sends only the matched locations to Datadog = contents are not redacted) and code repositories (Secret Scanning runs on SDS rules), and traces of LLM apps (official designation: Agent Observability) are scanned with 1 managed group (source: Sensitive Data Scanner).
| Target | Scanning range | Redaction |
|---|---|---|
| Logs | Entire message and attribute values | Full / partial / hash / mask |
| APM spans | Span attribute values only | Full / partial / hash / mask |
| RUM events | Event attribute values only | Full / partial / hash / mask |
| Events (Event Management) | Event attribute values only | Full / partial / hash (mask not available) |
| LLM app traces | Inputs, outputs, and metadata (managed group) | Full / partial / hash |
| Cloud storage (S3) / code repositories | Detection only | Not available |
Scanning groups decide "where," rules decide "what"
Configuration has 2 tiers. A scanning group decides "which data to scan" with a query filter and per-product enable buttons, and a sampling rate of 10 to 99% can be set per product. However, in a group with sampling enabled, redaction actions cannot be selected; if you want to redact, full-volume scanning is the premise (as of September 2026, source: Set Up Sensitive Data Scanner for Telemetry Data). Rules are "what to match," and come in 2 families: library rules (email addresses, card numbers, API keys, authorization tokens, network / device information, and more, with recommended keywords) and custom rules with regular expressions (source: Library Rules). The limit per organization is 750 rules, counted across all groups. The official documentation provides guided setup in the UI for first-time users, and the same configuration can be written in Terraform.
- 1. Permissions - Datadog Admin, or a role with data_scanner_read / data_scanner_write
- 2. Create a scanning group - query filter + target products (logs / APM / RUM / events). Turn sampling off if you will redact
- 3. Choose library rules - set priority and decide the scanning range (entire event / specific attributes)
- 4. Action on match and tags - choose full / partial / hash / mask and attach sensitive_data-family tags
- 5. Enable the group (disabled right after creation), check the match results in Findings, then add custom rules
Of the 4 redaction methods, only mask can be reversed
There are 4 actions on a matched value. Redact / Partially redact / Hash are irreversible, and the differences are as in the table (as of September 2026, source: Set Up Sensitive Data Scanner for Telemetry Data). Mask hides the appearance while letting only users with the data_scanner_unmask permission see the original value in the UI, and is available for logs / APM spans / RUM events. Via the API or Terraform and inside archives the data stays redacted, and it cannot be unmasked in rehydrated logs. The official documentation does not recommend Mask for credentials unless you have a plan to rotate every leaked key in response. With any action, matched events can be tagged with sensitive_data / sensitive_data_category, usable in search / dashboards / monitors and in log RBAC view restrictions.
| Action | Result | Reversible? | Suitable situation |
|---|---|---|---|
| Redact | Replaces the matched part with a specified replacement string (e.g. [sensitive_data]) | Irreversible | The value itself is not needed (card numbers, etc.) |
| Partially redact | Replaces only the specified number of characters / position | Irreversible | Keep only the last 4 digits for matching |
| Hash | Replaces the matched UTF-8 byte sequence with a FarmHash 64-bit fingerprint | Irreversible | Only need to check whether values are the same (correlating IDs) |
| Mask | Hides the appearance; only authorized users can unmask and view | Authorized users can unmask in the UI (not via API / archives / rehydration) | Personal information whose original text is needed during investigation. Not recommended for credentials |
What you can do after finding
The value lies in being able to count afterward "how many leaks, since when, and where." The Findings page lists the matched rule, scanning group, number of related events, a time series graph, and linked cases (as of September 2026). For notifications, logs use security notification rules created from Findings (filterable by severity / service / environment / team, and not including the log body), while APM and RUM use monitors with tag conditions. The "Sensitive Data Scanner Overview" dashboard is also included automatically. A point of caution is the relationship with archives: rehydrated logs are not rescanned and come back as they were when written. If you included Datadog tags in the archive, you can filter by the tags of that time, but the highlighting of matched locations does not remain (source: Set Up Sensitive Data Scanner for Telemetry Data). Since you cannot redact retroactively, design on the premise that logs from before enablement are unredacted.
Reading per-scanned-GB billing versus partial scanning
The billing unit is scanned GB. The official pricing page shows the full-scan unit price in the three forms of annual contract, monthly contract, and on-demand, and the same page places a separate "partial scanning" unit price per ingested GB. Partial scanning is a lower price band that assumes 10% sampling, with a footnote that "sampling must be disabled to obfuscate sensitive data" (SKU breakdown as of September 2026; source: Datadog Pricing). Read together with the specification, partial scanning is the unit price for the stage of "cheaply measuring what is mixed in and how much," and once you move into redaction operations it switches to the full-scan unit price: a 2-stage structure. Since it is a separate SKU from Log Management ingested GB, when adding SDS to a log pricing estimate, count "the GB included in the scanning scope" separately. Follow the log pricing article and the pricing guide for the estimation procedure. For the actual unit prices, check Datadog's official pricing page.
| SKU | Billing unit | Commitment | Main caveats |
|---|---|---|---|
| Sensitive Data Scanner (full scan) | Scanned GB / month | Annual / monthly / on-demand | Operations that redact (mask, hash, and so on) use this unit price |
| Partial scanning (10% sampling) | Ingested GB / month | Annual / monthly / on-demand | Suited to measuring how much is mixed in. Redaction cannot be selected because sampling is enabled |
A separate feature from RUM masking and LLM-side scanning
There are 3 features with similar names, so let us draw the lines. The masking in RUM Session Replay (defaultPrivacyLevel) is a mechanism that hides the screen on the browser side before sending, a different layer from SDS scanning RUM event attribute values after arrival. Sensitive Data Scanning in the managed evaluations of LLM Observability is a feature that attaches evaluation results to inputs and outputs, and coexists with SDS-side scanning (redacting inputs and outputs with the managed group) (as of September 2026, sources: Managed Evaluations / Sensitive Data Scanner). Watching a leaked authentication token as a sign of attack is the role of Cloud SIEM detection rules; SDS's role is to keep it out of the body before that. Choose along 2 axes, "before sending or after arrival" and "is the target logs, screens, or LLM inputs and outputs," and SDS covers logs / APM / RUM / events after arrival.
Things to watch out for
- This article is based on the official documentation as of September 2026. Target data sources and action types may change, so when in doubt, give priority to what the configuration screen shows and what the official documentation states.
- This article explains how billing works. For current unit prices and plans, refer to Datadog's official pricing page.
- In a scanning group with sampling enabled, redaction actions cannot be selected (as of September 2026). Before moving into redaction operations, turn off sampling for the target group and re-estimate at the full-scan unit price.