Skip to main content
The redact transform removes or pseudonymizes personally identifiable information before data leaves your pipeline. It ships with 11 built-in patterns for common PII types and supports custom regex for anything else.

Quick start

Redact all emails and IP addresses:
This replaces matches with [REDACTED]. To keep data linkable across events, use hashing instead:
Hashing produces deterministic pseudonyms like usr_7kJ9mNpQ3xYz — the same input always produces the same hash, so you can still correlate events without storing raw PII.

Built-in patterns

Strategies

Hashing uses HMAC-SHA256 with your hash_key. Different keys produce different hashes, so each workspace can be isolated.

Targeted fields

Instead of scanning all strings (scan_all = true), you can target specific JSON paths for better performance:
Each targeted field can override the default strategy. In this example, emails are hashed but IP addresses are fully redacted.

Custom patterns

Define your own regex patterns for domain-specific PII:
Custom patterns work with both strategies and are checked alongside built-in patterns.

Reference

At least one of patterns, fields, or custom_patterns is required.