This page walks through setting up the Sensitive Data Classifier from scratch. By the end you will have a scanning group that masks credit card numbers and email addresses in your logs, and you will know how to confirm it is working.
If you have not read Sensitive Data Classifier Overview yet, start there for the concepts.
Before you begin
You need:
- An Atatus account with log data already flowing. See Logs Monitoring if you have not set up log collection yet.
- Admin or Owner access to the account, since scanning rules apply to everyone's data.
Step 1: Create a scanning group
A scanning group decides which traffic gets scanned. Rules only run inside a group, so this comes first.
- Go to Security and open Sensitive Data Classifier.
- Select Add Scanning Group.
- Give the group a Name and an optional Description. Pick something that describes the traffic, for example
Payment service logs. - Under Filters, add a query to narrow what the group sees. Leave it empty to scan all of your logs.
- Set the Scanning Method for Logs to 100% or Sample. Leaving it on None means the group scans nothing.
- Save the group.
See Scanning Groups for what each field does in detail.
Step 2: Add rules to the group
A group with no rules does nothing. Add rules from the built-in library, write your own, or both.
To add library rules:
- Open the group and select Add Rule.
- Choose Library Rules.
- Select the rules you want. For a first pass, the credit card and email rules give quick, obvious results.
- Choose a Priority. This is a label you set for triage, from Info through Critical. It does not change how matching works.
- Choose a Match Action. Start with No Action if you want to see what matches before you mask anything.
- Save the rules.
To write your own rule, choose Custom Rule instead and follow Custom Rules.
Step 3: Enable the rules and the group
This is the step people miss. New scanning groups and new rules are both created in a disabled state, and nothing is scanned until both are turned on.
- Turn on the toggle for each rule you want active.
- Turn on the toggle for the group itself.
Both toggles matter. A group that is enabled but contains no enabled rules is skipped entirely, and an enabled rule inside a disabled group never runs.
Step 4: Confirm it is working
Send some traffic that should match, then check that it was scanned.
Open Logs and search for events carrying the sensitive data tags:
@sensitive_data:*Narrow to a category to confirm a specific rule fired:
@sensitive_data_category:credit_cardOpen a matching event and check that the value shows your replacement text, a hash, or a partial mask, depending on the action you chose.
You can also use the Sensitive Data and SDC Category facets in the logs sidebar instead of typing a query. See Investigate Sensitive Data for the full search reference, and Logs Search Syntax for how queries are built.
Configuration changes take effect on newly received data. Events that were already stored are not rescanned or masked retroactively.
Roll out to production safely
A staged rollout avoids masking something you needed:
- Create the group with No Action rules and a Sample scanning method.
- Watch the
@sensitive_datatags for a day and check what matched. Look for false positives, such as an order ID that looks like a card number. - Tighten the rules with included and excluded keywords. See Keywords and proximity.
- Switch the action to Redact, Partially Redact, or Hash.
- Raise the scanning method to 100%.
Turn scanning off
To stop scanning without losing your configuration, turn off the group toggle. The rules and their settings are kept.
Deleting a scanning group also deletes every rule inside it. If you only want to pause scanning, disable the group instead.
+1-415-800-4104