How to set up data scrubbing in Sentry

Turn on server-side data scrubbing in Sentry, apply default scrubbers, hide IP addresses, and add sensitive fields so private data never gets stored.

Quick answer

Open Security & Privacy in your organization settings, then scroll to the Data Scrubbing section. Turn on server-side data scrubbing, apply the default scrubbers, and optionally stop storing IP addresses. Add any custom field names under Global Sensitive Fields, then click Save so the new scrubbing configuration applies to all new events.

Steps at a glance

  1. Open Security & Privacy in organization settings
  2. Turn on server-side data scrubbing
  3. Apply the default scrubbers
  4. Prevent IP addresses from being stored
  5. Add your own sensitive fields
  6. Click Save

Interactive demo

Loading demo…

Summary

Data scrubbing removes sensitive values such as passwords, credit card numbers, and IP addresses from events before Sentry stores them. The organization-level settings apply to every project, so one change protects all of your data.

Step-by-step guide

  1. Step 1

    Turn on server-side data scrubbing

    Open your organization settings and choose Security & Privacy. Scroll to the Data Scrubbing section and select the checkbox for Require Data Scrubber. This requires server-side data scrubbing for all projects.

  2. Step 2

    Apply the default scrubbers

    Below it, tick the option to apply default scrubbers. These prevent things like passwords and credit cards from being stored with your events.

  3. Step 3

    Stop storing IP addresses

    Select the checkbox under Prevent Storing of IP Addresses. Sentry then stops storing IP addresses for new events on all projects.

  4. Step 4

    Add your own sensitive fields

    Click the Global Sensitive Fields box and enter the extra field names you want scrubbed, separated by commas. The Global Safe Fields box below it lists names the scrubbers should ignore.

  5. Step 5

    Save your changes

    Click Save at the bottom of the form. Sentry confirms that changes to your scrubbing configuration apply to all new events, so events that were already stored are not changed.

Why this matters

You ship an app that sometimes sends tokens or personal details in error payloads. Turning on scrubbing at the organization level keeps that data out of Sentry for every project, so a single stack trace never exposes something private.

Frequently asked questions

  • Does scrubbing change events Sentry already stored?

    No. Sentry shows a note that changes to your scrubbing configuration apply to all new events.

  • Does this apply to every project?

    Yes. The settings describe requirements and behavior for all projects in the organization.

Create interactive demos like this one — free, no coding required.

Start for free →