--- title: "How to Run an Audit" slug: "how-to-run-an-audit" updated: 2024-03-26T20:30:16Z published: 2024-03-26T20:30:16Z canonical: "docs.blackthorn.io/how-to-run-an-audit" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.blackthorn.io/llms.txt > Use this file to discover all available pages before exploring further. # How to Run an Audit Auditing is an important part of any Blackthorn Compliance implementation. Auditing is how you get rid of all the Personally Identifiable Information (PII) that you already have in your org. Follow the steps below to easily scan any Salesforce records for PII. 1. Navigate to the Audit tab. ![Audit Tab](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/Audit%20Tab.png) 2. Select an `Object` to Audit. ![select object](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/select%20object.png) 3. Select `Audit Start Date` and `Audit End Date`. ![start date end date](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/start%20date%20end%20date.png) `Audit Start Date` is the *Created Date* from which Audit will start querying for records. `Audit End Date` is the *Created Date* at which Audit will stop querying for records. **Note:** You can change the default Audit date range field to any other DateTime field (such as LastModifiedDate) by changing the AuditDateField in the Manager Custom Metadata Type. 1. Select `Audit Action`. ![Audit Action](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/Audit%20Action.png) - "Mask" will permanently redact credit card numbers Compliance detects on records according to the Mask Type configured for that record’s object. - "Report" will create a Compliance log record if a credit card number is detected but will NOT mask the number. You can view the reported records in the PCIFY Reports Folder. - "Delete" will delete the ENTIRE record if a credit card number is detected in ANY field. **Note:** Existing EmailMessages do not support Mask. For more information, go [here](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_emailmessage.htm). 1. Press **RUN**. You should see the following success alert: ![Success Alert](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/Success%20Alert.png) You will receive an email confirmation when the job is done. ## Important Notes - Depending on the Audit dates selected and the Audit Action, the Audit could take a few minutes to a few hours. We recommend testing your first audit with a month, and then expanding the date range to include years of records. - Masking will not be applied automatically after the creation of a new pattern since masking is only applied when a record is created or altered.