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
- Open Security & Privacy in organization settings
- Turn on server-side data scrubbing
- Apply the default scrubbers
- Prevent IP addresses from being stored
- Add your own sensitive fields
- Click Save
Interactive 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
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.
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.
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.
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.
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.
Related guides
Continue with more step-by-step guides for getting work done.
How to enable spike protection in SentryTurn on spike protection in Sentry so a sudden burst of events cannot use up your quota. Open Settings, pick Spike Protection and switch the project toggle on.
How to view an issue in SentryOpen an issue in Sentry, read the error message, check the tag breakdown, inspect the stack trace, and resolve it once the problem is fixed.
How to add a dashboard widget in SentryLearn how to add a dashboard widget in Sentry: open a custom dashboard, build an Errors line chart, name it, and see it appear on the dashboard.
How to set up uptime monitoring in SentrySet up uptime monitoring in Sentry: create an Uptime monitor for a URL, choose a project and environment, name it, and confirm checks are running.
How to set up user feedback in SentrySet up user feedback in Sentry: open your project settings, choose Feedback, switch on crash report notifications, and preview the modal users see.
How to share an issue in SentryLearn how to share a Sentry issue by copying its link for your team or publishing a public link for anyone outside your organization.
Create interactive demos like this one — free, no coding required.
Start for free →