--- title: "Export to S3 from Rules Engine" slug: "export-to-s3-from-rules-engine" updated: 2026-11-23T12:31:41Z published: 2026-11-23T12:31:41Z canonical: "support.gainsight.com/export-to-s3-from-rules-engine" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Export to S3 from Rules Engine This article explains on how you can export an output dataset from Rules Engine to Amazon S3 bucket. You can use the exported dataset in S3 bucket later in another Rule to create a dataset from this S3 bucket. ## Introduction **Rules Engine** allows you to export each task output data to Amazon S3. When using S3 Buckets, the job exports the data from the datasets. The destination of the data does not change, only the method of how the data is ingested. S3 is a place to store files - it is not a database. To learn more about creating tasks in Rules Engine, refer [*Create tasks with Rules Engine*](/v1/docs/create-tasks-in-rules-engine). ## Export to S3 from Rules Engine For each task, **Rules engine** allows you to configure export.Select the **Enable Export** checkbox under the **Export to S3** section at the **Rule Setup** screen. [![Select Enable Export check box.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Select_Enable_Export_check_box.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A43%3A16Z&se=2026-11-24T17%3A43%3A16Z&sr=b&sp=r&sig=R0cMC224qqMENb23DK9dC31HsRO41miCvRY0cB0YFdI%3D)](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Select_Enable_Export_check_box.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A43%3A16Z&se=2026-11-24T17%3A43%3A16Z&sr=b&sp=r&sig=R0cMC224qqMENb23DK9dC31HsRO41miCvRY0cB0YFdI%3D) As an Admin, you can now export each task’s output to an S3 bucket which can either be **Gainsight Bucket** or **Custom Bucket** with encryption and decryption capabilities. Perform the following steps to export the output to S3: 1. Select **Rule Setup > Export to S3 > Enable Export** checkbox. The following screen appears. ![Navigation after enabling S3.gif](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Navigation_after_enabling_S3.gif?sv=2026-02-06&spr=https&st=2026-11-24T16%3A43%3A16Z&se=2026-11-24T17%3A43%3A16Z&sr=b&sp=r&sig=UtNZPl%2F%2Fe4pUPjIxq9iZgzIW8RpeJ61GFETqTZi3VAQ%3D) 2. Provide the required information in the fields available in this section. **Note**: You can also select Custom key which is Pretty Good Privacy (PGP) Public key. PGP is an Encryption-Decryption program. Using Public key, the data is encrypted, then customers can decrypt only with private key. ![Enabling File encryption.gif](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Enabling_File_encryption.gif?sv=2026-02-06&spr=https&st=2026-11-24T16%3A43%3A16Z&se=2026-11-24T17%3A43%3A16Z&sr=b&sp=r&sig=5pbL0K5tAjrwOz5abgHklqFLgnA2w3NxHhzlRrQnwrc%3D) 1. **Export with the file name**: Enter a name for the output file and select a value from the drop-down list. The output file of each task is stored with the provided name along with the pattern type that appends the selected value to the file name. The following is the output file naming convention: **Note**: Avoid creating file names with leading spaces. - **None** - fileName.csv - **Rule Date** - fileName-2017-10-10.csv - **Execution Datetime** - fileName-2017-10-10-21:15:57.csv If you add slash in the File name, it creates the folder name as shown in the following image. [![Adding slash to create folder.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Adding_slash_to_create_folder.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A43%3A16Z&se=2026-11-24T17%3A43%3A16Z&sr=b&sp=r&sig=VxyVN57%2BjKbTF5KZiKwYek9GJFu2xVPjGZ5Q0aTEN9Q%3D)](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Adding_slash_to_create_folder.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A43%3A16Z&se=2026-11-24T17%3A43%3A16Z&sr=b&sp=r&sig=VxyVN57%2BjKbTF5KZiKwYek9GJFu2xVPjGZ5Q0aTEN9Q%3D) 2. **To which S3 Connector you want to Export?:** 1. **Gainsight Bucket:** Select the option Gainsight Bucket and select **GainsightManaged** from the dropdown list. [![Selecting Gainsight Bucket and gainsightmanaged.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Selecting_Gainsight_Bucket_and_gainsightmanaged.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A43%3A16Z&se=2026-11-24T17%3A43%3A16Z&sr=b&sp=r&sig=DGv%2BjH4LNfd5JffeBiIZmDNYLy7cYr49bzttu%2FPwIgE%3D)](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Selecting_Gainsight_Bucket_and_gainsightmanaged.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A43%3A16Z&se=2026-11-24T17%3A43%3A16Z&sr=b&sp=r&sig=DGv%2BjH4LNfd5JffeBiIZmDNYLy7cYr49bzttu%2FPwIgE%3D) 2. **Custom Bucket:** You must use the Custom Bucket as S3 Connector. Enter your S3 bucket credentials. Following are the credentials of an S3 bucket, shown for your reference: - Bucket Access Path - Access key - Security Token 3. Select the option, Custom Bucket and enter your S3 bucket credentials. Following are the credentials of an S3 bucket, shown for your reference: **Note:** Credentials shown above are just for reference only. They are not the original credentials of any S3 bucket. ![Selecting the S3 connector.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Selecting_the_S3_connector.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A43%3A16Z&se=2026-11-24T17%3A43%3A16Z&sr=b&sp=r&sig=vyON3wvmljNmz40glQL8vfqx7drv1g0RZLeV2LnM%2F6U%3D) - Bucket Access Path: export-gainsight-data - Access Key: DXYABAT5L76LDQCRS8GH - Security Token: kNUSlVSbcAcKPgpDCiSqNuORLss3KDWApWCpTQdH 4. Click **VALIDATE S3 CREDENTIALS** to verify the S3 credentials. You get the response message whether the credentials are valid or not. 3. **Do you want to do File Encryption?** 1. Select the checkbox. 2. Select the **Do you want to export if encryption fails?** Checkbox. 3. Select the **Available Keys** checkbox if you have the key details with you or you can contact Gainsight tech support to request for the key. 3. **How do you like to compress:** Select a compression type for the available key from the drop-down list. Following are the compression types available as shown below: [![Select compression method.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Select_compression_method.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A43%3A16Z&se=2026-11-24T17%3A43%3A16Z&sr=b&sp=r&sig=Ade9oskwwgtgcqYQ7lGRwT8kPb3BLSvOqgviKCuQ0pM%3D)](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Select_compression_method.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A43%3A16Z&se=2026-11-24T17%3A43%3A16Z&sr=b&sp=r&sig=Ade9oskwwgtgcqYQ7lGRwT8kPb3BLSvOqgviKCuQ0pM%3D) - gzip - bzip 4. **How do you want to generate file?** Select the required options from the drop-down lists for **Field Separator**, **Text Qualifier**, and **Escape Character** fields. [![Selecting output generate file.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Selecting_output_generate_file.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A43%3A16Z&se=2026-11-24T17%3A43%3A16Z&sr=b&sp=r&sig=6nmNQ%2Ftwtl9XWz%2FYoscGAcgWz%2FxoK1dOonzM0bdV4xc%3D)](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Selecting_output_generate_file.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A43%3A16Z&se=2026-11-24T17%3A43%3A16Z&sr=b&sp=r&sig=6nmNQ%2Ftwtl9XWz%2FYoscGAcgWz%2FxoK1dOonzM0bdV4xc%3D) 5. Click **SAVE**.