---
schema_version: "1"
id: 54455fd0c8b5bbeb1d4e0d76b2c1c68ba15b385df47e5fa9360b34bf340b8a9e
title: Create an Audit Trail Data Extract Activity
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_as_create_an_audit_trail_data_extract_activity.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_as_create_an_audit_trail_data_extract_activity.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: bcc57eb72dc20ee244869217f9e46660919a95b7c92366ea6cbbba183af212ee
description: Use an extract activity to extract your audit data into a CSV file to prepare it for file transfer.
products:
  - Marketing
  - Marketing Cloud Engagement
release: "264"
---
# Create an Audit Trail Data Extract Activity

Use an extract activity to extract your audit data into a CSV file to prepare it for file transfer.

1. In Automation Studio, on the Activities tab, click **Create Activity**.
2. In the Create New Activity window, select **Data Extract**, and click **Next**.
3. Complete the fields in the Properties section. For Extract Type, select **Audit Trail Activity Log** or **Audit Trail Access Log**.
4. Complete the fields in the Configuration section.
    
    The maximum value that you can specify for the date range depends on your edition. Basic Audit Trail provides up to 30 days of data, and Advanced Audit Trail provides up to 60 days.
5. Review the activity summary. When you’re done, click **Finish**.
    
    A CSV file is generated.

For more information about configuring a data extract activity, see [Data Extract Activity](https://help.salesforce.com/s/articleView?id=mktg.mc_as_use_a_data_extract_activity.htm&language=en_US).

- **[Audit Trail Activity Log Fields](https://help.salesforce.com/s/articleView?id=mktg.mc_as_security_action_audit_trail.htm&release=264.0.0&type=5)**  
    Learn about the data that's available in the Audit Trail Activity Log extract in Automation Studio.
- **[Audit Trail Access Log Fields](https://help.salesforce.com/s/articleView?id=mktg.mc_as_security_event_audit_trail.htm&release=264.0.0&type=5)**  
    View the audit data from the Audit Trail security event extract available in Automation Studio.