Early access: verified fix PRs ·

See how a fix is proven
AutoSRE
100% Client-Side · Zero Data Leaves Your BrowserSecurity & Privacy

Log PII & Secret Redactor

Scrub emails, IPv4 addresses, JWTs, API keys, database URLs, and credit cards from application logs directly in your browser.

Back to all 30 Free SRE Tools/resources/tools/log-pii-redactor
Loading interactive SRE tool...
Live in AutoSRE

Automatic pre-storage PII & secret redaction for OTLP traces

Stop worrying about tokens leaking into debug workflows. AutoSRE scrubs sensitive fields before storage—with support for up to 30 custom rules—before triaging production bugs.

How It Works

How to use Log PII Redactor

  1. 1

    Paste raw application logs, stack traces, or JSON log lines into the input editor.

  2. 2

    Toggle built-in detectors (emails, JWTs, API keys, IPs, connection strings, credit cards) and choose a masking style.

  3. 3

    Add custom regex rules for internal token prefixes, tenant IDs, or proprietary headers.

  4. 4

    Copy or download the scrubbed output safely—nothing ever leaves your browser.

Quick Reference

High-Risk Tokens & PII Patterns to Scrub Before Storage

Common sensitive values found in production HTTP error spans and structured application logs.

Data TypeCommon LocationRecommended Replacement
JWTs (eyJ...)Authorization headers, cookies, URL tokens[REDACTED_JWT]
Bearer / Basic Authheaders.authorization / req.headers[REDACTED_TOKEN]
API Keys (sk_live_, AIza, etc.)Query params, SDK error payloads, env dumps[REDACTED_API_KEY]
Emails & Phone NumbersRequest body, validation error logs[REDACTED_EMAIL] / [REDACTED_PHONE]
Payment Card PANsCheckout webhook bodies (Luhn-verified)[REDACTED_CARD]
Session CookiesSet-Cookie / Cookie HTTP headers[REDACTED_COOKIE]
Frequently Asked Questions

Log PII Redactor FAQ

Everything runs locally in your browser with zero telemetry upload. Inspect inputs, copy clean outputs, and review common edge cases below.

No. All pattern matching, Luhn credit-card checks, and replacements run locally in your browser using JavaScript. Zero log payloads are sent to any server.