---
updatedAt: 2026-03-01T18:34:36.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/etp/llms.txt
---

# Export SIA logs

You can export event and activity logs at a large volume from ​SIA​ and import them into Linode Object Storage or Microsoft Azure Blob Storage. Log data is stored in your Linode S3-compatible object storage bucket or in your Azure blob.

To configure this feature:

* On the Connection Info page (**Clients & Connectors** > **Connection Info**), you specify the destination settings for Linode or Azure.
* On the Scheduled Reports & Notifications page (**Reports** >**Scheduled Reports & Notifications**), you select  the logs that you want to export. You can export data from the Threat Events, Access Control, and DNS Activity reports. If your organization uses SIA proxy, you can export data from the Proxy Activity report. To learn more about the data that is exported, see [Exported log data](https://techdocs.akamai.com/etp/docs/export-logs#exported-log-data).

After these settings are configured, Linode or Azure receives logs. The following applies:

* This operation exports data at 5 or 10 minute intervals.
* By default, data is compressed into three separate CSV files for each log type. These files include DNS Activity, Proxy Activity, and All Events.
* For Linode, you generate an encryption key that's used to encrypt log data. You must use this key to decrypt the log data as well. For more information, see [Decrypt log data stored on Linode](https://techdocs.akamai.com/etp/docs/export-logs#decrypt-log-data-stored-on-linode).

<br />

> 📘
>
> This feature is currently in limited availability. To use this feature, contact your ​Akamai​ account representative.

# Log filename convention

Logs are compressed and exported into your Linode S3 bucket or your Azure blob storage based on the export settings you configure in ​SIA​ (**Clients & Connectors** > **Connection Info**). Logs are organized into folders that indicate the type of log that's exported.

Exported logs have this folder structure and use this filename convention:

`<logType>/<timestamp><internalKey><partNumber>.<format>`

where:

* `<logType>` is the type of logs that were exported. This area may show DNS\_ACTIVITY, PROXY\_ACTIVITY, or EVENTS.
* `<timestamp>` is the epoch timestamp in milliseconds when data was exported from ​SIA​.
* `<internalKey>` is a number used for internal purposes only. You can ignore this value.
* `<partNumber>` indicates the log file number in case the file is divided into multiple parts.  For example, if the part number is 2, logs were continued in a second file. At this time, a single log file can have a maximum of 5 million rows.
* `<format>` is the file format. CSV files are compressed into a gzip (.gz) file.

The following is an example of the folders where you can find logs and the log filename:

`DNS_ACTIVITY/1720985285000_15_1.csv.gz`

# Exported log data

You can export log data from these ​SIA​ reports:

* [DNS activity](https://techdocs.akamai.com/etp/docs/export-logs#dns-activity)
* [Proxy activity](https://techdocs.akamai.com/etp/docs/export-logs#proxy-activity)
* [Threat and access control events](https://techdocs.akamai.com/etp/docs/export-logs#threat-and-access-control-events)

## DNS activity

This data is exported into the DNS activity log file.

[block:parameters]
{
  "data": {
    "h-0": "Data Field",
    "h-1": "Description",
    "0-0": "Detection time",
    "0-1": "Time the request occurred.",
    "1-0": "Domain",
    "1-1": "Domain that was requested",
    "2-0": "Action",
    "2-1": "Policy action that was taken on request. Indicates whether the request was allowed or blocked.",
    "3-0": "Query Type",
    "3-1": "DNS resource record type associated with the request.",
    "4-0": "Reason",
    "4-1": "Indicates how the activity was detected. For example, it may have been detected based on policy, custom list, or more.",
    "5-0": "List",
    "5-1": "If applicable, this value indicates the custom list that applies to the activity.",
    "6-0": "Category",
    "6-1": "Category assigned to the activity. If the category is a threat, a threat category is listed.",
    "7-0": "Observed categories",
    "7-1": "Additional categories that were observed for the activity.",
    "8-0": "Policy",
    "8-1": "Name of policy that applies to activity.",
    "9-0": "Location",
    "9-1": "Name of the location that’s associated with the activity.",
    "10-0": "Sub-location",
    "10-1": "If applicable, this is the sub-location that’s assigned to activity.",
    "11-0": "Source IP",
    "11-1": "External IP address for DNS activity.",
    "12-0": "Internal IP",
    "12-1": "The IP address of the internal client device.",
    "13-0": "Device Name or ID",
    "13-1": "Name of the device associated with the activity.",
    "14-0": "Internal Client Name",
    "14-1": "Name of the internal client device.",
    "15-0": "Onramp Type",
    "15-1": "Indicates how a request was directed to ​​SIA​​ Proxy.  \nOne of these values may appear:  \n  \n<ul>\n <li>**dns**. Indicates DNS event was forwarded to ​​SIA​ Proxy.</li>\n <li>**web**. Indicates web (HTTP and HTTPS) request was forwarded to the full web proxy.</li>\n<li>**onramp_dns**. Indicates that risky HTTP and HTTPS traffic was forwarded to the selective proxy.</li>\n<li>**etp_client**. Indicates the request was directed to ​​SIA​ Proxy as a result of ​the client​.</li>\n<li>**etp_offnet_client**. Indicates the request was directed to ​​SIA​ Proxy as a result of the client​. In this case, ​the client was off the corporate network.</li>\n<li>**explicit_proxy_tls**. Indicates the request was directed to ​​SIA​​ Proxy as a result of an on-premises proxy configuration.</li>\n</ul>"
  },
  "cols": 2,
  "rows": 16,
  "align": [
    "left",
    "left"
  ]
}
[/block]

## Proxy activity

This data is exported into the proxy activity log file.

[block:parameters]
{
  "data": {
    "h-0": "Data Field",
    "h-1": "Description",
    "0-0": "Detection time",
    "0-1": "Time the request occurred.",
    "1-0": "Domain",
    "1-1": "Domain that was requested",
    "2-0": "URL",
    "2-1": "URL or path that was requested.",
    "3-0": "HTTP Method",
    "3-1": "Action that’s performed during a request. May indicate a POST or GET.",
    "4-0": "Action",
    "4-1": "Indicates the policy action that was performed on the activity.",
    "5-0": "Reason",
    "5-1": "Informs how traffic was identified.  \n  \nAny of these reasons may appear:<ul><li>**​Akamai​ Intelligence**. Indicates traffic was identified by ​Akamai​ or a threat category. <li>**Customer Domain Intelligence**. Indicates traffic was found for a domain based on a list configuration. <li>**Customer URL Intelligence**. Indicates traffic was found for a URL based on a list configuration. <li>**Sandbox-Dynamic Analysis**. Indicates traffic was found with dynamic malware analysis. <li>**AV scan**. Indicates traffic was found with inline payload analysis. <li>**Data Leakage Prevention**. Indicates traffic was found as a result of a DLP configuration.</ul></li>Additionally, if traffic was detected as a result of AVC, these reasons may also be listed depending on the policy action assigned to these areas:  \n  \n<ul><li>**Application Risk Level**. Indicates traffic was detected based on the risk levels associated with the policy.<li>**Category**. Indicates traffic was detected based on the category or categories associated with the policy.<li>**Application category operation**. Indicates traffic was detected based on the category operations associated with the policy.<li>**Application**. Indicates traffic was detected based on applications associated with the policy.<li>**Application Operation**. Indicates traffic was detected based on application operations associated with the policy.</ul></li>",
    "6-0": "Lists",
    "6-1": "Indicates what list matches this activity. Lists may include a custom list or an intelligence list associated with a threat category.",
    "7-0": "Categories",
    "7-1": "Category assigned to the activity. If the category is a threat, a threat category is listed.",
    "8-0": "Policy",
    "8-1": "Name of policy that applies to activity.",
    "9-0": "Location",
    "9-1": "Name of the location that applies to the activity.",
    "10-0": "Sublocation",
    "10-1": "If applicable, the name of the sub-location that applies to activity.",
    "11-0": "Application Name",
    "11-1": "Name of the application that applies to the activity.",
    "12-0": "Application Operation",
    "12-1": "Name of the application operation that applies to this activity.",
    "13-0": "Source IP",
    "13-1": "External IP address associated with the activity.",
    "14-0": "Destination IP",
    "14-1": "IP address that was requested.",
    "15-0": "Internal IP",
    "15-1": "IP address of the internal client device that was detected by Security Connector.",
    "16-0": "Internal Client Name",
    "16-1": "Name of the internal client device that was detected by Security Connector.",
    "17-0": "Onramp Type",
    "17-1": "Indicates how activity was directed to ​SIA​ Proxy.  \n  \nOne of these values may appear:<ul><li>**dns**. Indicates DNS activity was forwarded to ​SIA​ Proxy. <li>**web**. Indicates web (HTTP and HTTPS) request was forwarded to the full web proxy. <li>**onramp_dns**. Indicates that risky HTTP and HTTPS traffic was forwarded to the selective proxy. <li>**etp_client**. Indicates the request was directed to ​SIA​ Proxy as a result of the client. <li>**etp_offnet_client**. Indicates the request was directed to ​SIA​ Proxy as a result of the client. In this case, the client was off the corporate network. <li>**explicit_proxy_tls**. Indicates the request was directed to ​SIA​ Proxy as a result of an on-premises proxy configuration.</ul></li>"
  },
  "cols": 2,
  "rows": 18,
  "align": [
    "left",
    "left"
  ]
}
[/block]

## Threat and access control events

Threat events and access control events are exported into the Events log file.

[block:parameters]
{
  "data": {
    "h-0": "Data Field",
    "h-1": "Description",
    "0-0": "Detection Time",
    "0-1": "Time the request occurred.",
    "1-0": "Origin",
    "1-1": "Indicates whether the event was discovered as a result of ​SIA​ DNS or ​SIA​ Proxy",
    "2-0": "Domain",
    "2-1": "Domain that was requested.",
    "3-0": "Action",
    "3-1": "Policy action that was taken on request. Indicates whether the request was allowed or blocked.",
    "4-0": "Query Type",
    "4-1": "DNS resource record type associated with the request.",
    "5-0": "Event Type",
    "5-1": "Indicates whether the event was a threat event or an access control event.  \n  \n<ul><li>If **aup** is shown, the event is an access control event.</li><li>If **security** is shown, the event is a threat event.</li></ul>",
    "6-0": "Reason",
    "6-1": "Informs how an event was identified.  \n  \nAny of these reasons may appear:  \n  \n<ul><li>**​Akamai​ Intelligence**. Indicates the event was identified by ​Akamai​ or a threat category.\n<li>**Customer Domain Intelligence**. Indicates the event was found for a domain based on a list configuration.\n<li>**Customer URL Intelligence**. Indicates the event was found for a URL based on a list configuration.\n<li>**Sandbox-Dynamic Analysis**. Indicates the event was found with dynamic malware analysis.\n<li>**AV scan**. Indicates the event was found with inline payload analysis.\n<li>**Data Leakage Prevention**. Indicates the event was found as a result of a DLP configuration.\n</ul></li>Additionally, if the event was detected as a result of AVC, these reasons may also be listed depending on the policy action assigned to these areas:\n<ul>\n<li>**Application Risk Level**. Indicates the event was detected based on the risk levels associated with the policy.\n<li>**Category**. Indicates the event was detected based on the category or categories associated with the policy.\n<li>**Application category operation**. Indicates the event was detected based on the category operations associated with the policy.\n<li>**Application**. Indicates the event was detected based on applications associated with the policy.\n<li>**Application Operation**. Indicates the event was detected based on application operations associated with the policy.\n</ul></li>",
    "7-0": "Lists",
    "7-1": "List that identified the threat as an event. This list can be a custom list or a threat category.",
    "8-0": "Categories",
    "8-1": "The overall category of the event.  \n  \nFor a threat event, categories can be Malware, Phishing, C&C, DNS Exfiltration, Deny List, or Other (if assigned to a custom list)",
    "9-0": "Threats",
    "9-1": "Name of the threat. If a specific name for a threat does not appear, ​SIA​ shows a name that classifies the threat.  \n  \nThese classifications include:  \n  \n<ul><li>**Customer Lists**. Domains or IP addresses in a custom list. The domains or IP addresses in these lists are defined by your organization.\n<li>**Known Phishing**. Domains or URLs that are used in a social engineering attack to fraudulently obtain personal or classified information. A phishing scam deceives victims to performing an activity that compromises their machine or reveals sensitive information.\n<li>**Known Malware**. Domains or URLs that direct victims to malicious websites or are used by applications to harm a network. Malware steals confidential data, compromises data integrity, and disrupts data availability.\n<li>**Known CNC**. Domains or URLs that are used for C&C communication. A C&C threat is used to steal data, distribute malware, and disrupt services.\n<li>**File Sharing**. Domains or URLs of file sharing services.\n<li>**Aged Out**. Indicates the domain was tracked as a threat for some time and it may still be a threat. If the proxy is enabled, the proxy determines whether the domain is still a threat.\n<li>**Generic Risky**. Indicates there's risk that the domain may be malicious. If the proxy is enabled, the proxy determines whether it is malicious.\n<li>**Unclassified** Indicates a threat is not yet classified by ​SIA​.</ul></li>\nThis field appears for threat events only.",
    "10-0": "Severity",
    "10-1": "Indicates the severity level. For more information, see [Severity levels](https://techdocs.akamai.com/etp/docs/indicator-search#severity-levels).  \n  \nThis field appears for threat events only.",
    "11-0": "Application Name",
    "11-1": "Web application that violated access control settings in ​​SIA​​ policy. For more information, see [Application visibility and control](https://techdocs.akamai.com/etp/docs/application-visibility-control).",
    "12-0": "Application Risk",
    "12-1": "Risk level associated with a web application that violated ​access control settings in ​SIA​ policy. For more information, see [Application visibility and control](https://techdocs.akamai.com/etp/docs/application-visibility-control).",
    "13-0": "Application Operation",
    "13-1": "Application operation that violated access control settings in ​​SIA​​ policy. For more information, see [Application visibility and control](https://techdocs.akamai.com/etp/docs/application-visibility-control).",
    "14-0": "File Name",
    "14-1": "Name of the file that was involved in the event.",
    "15-0": "File Type",
    "15-1": "MIME file type that is downloaded or uploaded. An administrator may assign the block or monitor action to this file type in a policy.",
    "16-0": "Policy",
    "16-1": "Security policy or set of rules that’s associated with the event.",
    "17-0": "Location",
    "17-1": "Location where the event originated from.",
    "18-0": "Sublocation",
    "18-1": "If applicable, the name of the sub-location where the event originated from.",
    "19-0": "Source IP",
    "19-1": "External IP address of traffic. This is likely the IP address that’s assigned to a location as a result of NAT.",
    "20-0": "Destination IP",
    "20-1": "IP address that was requested.",
    "21-0": "Internal IP",
    "21-1": "Internal IP address of the user’s device.",
    "22-0": "Device Name/ID",
    "22-1": "Name or ID of the user’s device.",
    "23-0": "Internal Client Name",
    "23-1": "Internal client name of machine that’s detected by DNS Forwarder.",
    "24-0": "Onramp Type",
    "24-1": "Indicates how a request was directed to ​SIA​ Proxy.  \n  \nOne of these values may appear:<ul><li>**dns**. Indicates DNS activity was forwarded to ​SIA​ Proxy. <li>**web**. Indicates web (HTTP and HTTPS) request was forwarded to the full web proxy. <li>**onramp_dns**. Indicates that risky HTTP and HTTPS traffic was forwarded to the selective proxy. <li>**etp_client**. Indicates the request was directed to ​SIA​ Proxy as a result of the client. <li>**etp_offnet_client**. Indicates the request was directed to ​SIA​ Proxy as a result of the client. In this case, the client was off the corporate network. <li>**explicit_proxy_tls**. Indicates the request was directed to ​SIA​ Proxy as a result of an on-premises proxy configuration.</ul></li>"
  },
  "cols": 2,
  "rows": 25,
  "align": [
    "left",
    "left"
  ]
}
[/block]

# Configure log export settings

Complete this procedure to configure the destination of ​SIA​ logs.

To define what type of logs are exported, see [Enable or disable the export of specific logs](https://techdocs.akamai.com/etp/docs/export-logs#enable-or-disable-the-export-of-specific-logs).

Before you begin:

* If you are exporting logs to Linode:
  * Make sure you’ve created a storage bucket in the Linode platform. For instructions, see [Create and manage buckets](https://techdocs.akamai.com/cloud-computing/docs/create-and-manage-buckets)  in the ​Akamai​ cloud computing documentation.
  * Make sure you have your access key and secret key. For more information, see [Get started with object storage](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-object-storage)  in the ​Akamai​ cloud computing documentation.
  * Generate a 32-byte string in hexadecimal format that you can use as an encryption key for logs. You can provide any unencoded 32 byte string. You can use OpenSSL to generate this string with the following command:\
    `openssl rand -hex 16`
    > 🚧
    >
    > Linode destroys encryption keys immediately after your data is encrypted. Object Storage data that is encrypted with SSE-C is unrecoverable without your encryption key. Make sure you save the encryption key.
* If you are exporting logs to Azure:
  * Make sure you have an Azure storage account and you've created a container and a blob. For more information, see [Introduction to Azure Blob Storage](https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction) in the Azure documentation.
  * Make sure you have your tenant ID. To find this ID, see [Find your Microsoft Entra Tenant](https://learn.microsoft.com/en-us/azure/azure-portal/get-subscription-tenant-id#find-your-microsoft-entra-tenant) in the Azure documentation.
  * Make sure you have your account access key. For instructions, see [View account access keys](https://learn.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage?tabs=azure-portal) in the Azure documentation.

To export logs:

1. In the Threat Protection menu of Enterprise Center, select **Clients & Connectors** > **Connection Info**.
2. Go to the **Log Export Settings**.
3. In the Destination menu, select **Linode S3 Bucket** or **Azure Blob Storage**.
4. If you selected Linode S3 Bucket, complete these steps:
   1. In the Access Key ID field, enter the access key label.
   2. In the Secure Access Key field, enter the access key.
   3. In the Endpoint field, enter the URL for the Linode bucket.
   4. In the Bucket Name field, enter the name of your Linode bucket.
   5. In the Encryption token field, enter the encryption key that you generated in the **Before you begin** to this procedure.
5. If you selected Azure Blob Storage, complete these steps:
   1. In the Account Name field, enter the name of your Azure storage account.
   2. In the Secret Key field, enter the Azure access key.
   3. In the Blob field, enter the name of your container where you want to store exported log files.
   4. In the Tenant ID field, enter the tenant ID that is associated with your organization’s account.
6. Click **Save**.

Next Step:

Select the logs that you want to export. For instructions, see [Enable or disable the export of specific logs](https://techdocs.akamai.com/etp/docs/export-logs#enable-or-disable-the-export-of-specific-logs).

# Enable or disable the export of specific logs

Complete this procedure to enable or disable the export of a specific log type. CSV files with log data can be exported for DNS activity, proxy activity, and event data.

The user interface indicates that logs are exported to the destination you configured on the Connection Info page.

Before you begin:

Make sure you configure the log export settings. For more information, see [Configure log export settings](https://techdocs.akamai.com/etp/docs/export-logs#configure-log-export-settings).

To enable or disable the export of specific logs:

1. In the Threat Protection menu of Enterprise Center, select **Reports** > **Scheduled Reports & Notifications**.
2. Expand the **Logs** section.
3. To enable the export of a specific log, do the following:
   * To export DNS activity logs, turn on the Status toggle for **DNS Activity.** Make sure you wait for the success message that appears after enabling this setting before turning on a toggle for another log.
   * To export Proxy activity logs, turn on the Status toggle for **Proxy Activity**. Make sure you wait for the success message that appears after enabling this setting before turning on a toggle for another log.
   * To export logs on all events, turn on the Status toggle for **All Events**. Make sure you wait for the success message that appears after enabling this setting before turning on a toggle for another log.
4. In the Frequency menu, select how often you want to export a specific log. You can export logs every 5 or 10 minutes.
5. To disable the export of a specific log, do the following:
   * To disable the export of DNS Activity logs, turn off the Status toggle for **DNS Activity**.
   * To disable the export of Proxy Activity logs, turn off the Status toggle for **Proxy Activity**.
   * To disable the export of All events logs, turn off the Status toggle for **All Events**.

Next Steps:

If you are storing log data on Linode, you will need to decrypt log data. For more information, see [Decrypt log data stored on Linode](https://techdocs.akamai.com/etp/docs/export-logs#decrypt-log-data-stored-on-linode).

# Decrypt log data stored on Linode

You use the encryption key that you generate as part of Linode object storage setup to encrypt the data that’s in your bucket. After it’s encrypted, you can decrypt data with the same encryption key. To decrypt your log data, use one of these methods:

* Create a python script that can decrypt log data in your bucket. For instructions, see [Create and run a python script for decryption](https://techdocs.akamai.com/etp/docs/export-logs#create-and-run-a-python-script-for-decryption).
* Use the rclone command line tool to decrypt your data. For instructions, see [Use rclone to decrypt log data](https://techdocs.akamai.com/etp/docs/export-logs#use-rclone-to-decrypt-log-data).

## Create and run a python script for decryption

Complete this procedure to a create and run a python script that decrypts log data that's stored in your Linode bucket.

Before you begin:

* Make sure you are running Python 3.4 or later on your machine. To check your version, enter this command: `python3 --version`
* Make sure you’ve generated an object storage key pair.
* Make sure you have the encryption key that was used to encrypt logs.

To create a python script for decryption:

1. In a code editor, open a new file with the name `example.py`. In the file, enter enter the following:\ <br />

   ```
   #!/usr/bin/env python

   import boto3
   import os
   import gzip
   import shutil
   import logging

   # Static configuration
   ENDPOINT_URL = "<BUCKET_URL>"
   AWS_ACCESS_KEY_ID = "<ACCESS_KEY_ID>"
   AWS_SECRET_ACCESS_KEY = "<SECRET_ACCESS_KEY>" 
   ENCRYPTION_KEY = "<ENCRYPTION_KEY>" 
   BUCKET = "<BUCKET_NAME>"
   SOURCE_FOLDER = "<LINODE_FOLDER>" 
   DESTINATION_DIR = '<LOCAL_PATH>' 

   # Set up logging
   logging.basicConfig(level=logging.INFO)

   # Ensure the destination directory exists
   os.makedirs(DESTINATION_DIR, exist_ok=True)

   # Create an S3 client
   client = boto3.client(
       "s3",
       aws_access_key_id=AWS_ACCESS_KEY_ID,
       aws_secret_access_key=AWS_SECRET_ACCESS_KEY,
       endpoint_url=ENDPOINT_URL
   )

   def list_s3_files():
       logging.info(f"Listing files in S3 folder: {SOURCE_FOLDER}.")
       response = client.list_objects_v2(Bucket=BUCKET, Prefix=SOURCE_FOLDER + '/')
       
       files = []
       if 'Contents' in response:
           for obj in response['Contents']:
               files.append(obj['Key'])
       return files

   def process_and_copy_file(s3_key):
       local_filename = os.path.basename(s3_key)
       dest_path = os.path.join(DESTINATION_DIR, local_filename)
       
       logging.info(f"Downloading encrypted file from S3: {s3_key}.")
       with open(dest_path, 'wb') as f:
           client.download_fileobj(BUCKET, s3_key, f,
                                   ExtraArgs={"SSECustomerKey": ENCRYPTION_KEY, "SSECustomerAlgorithm": "AES256"})

       # Check if the file is compressed and decompress if necessary
       if dest_path.endswith('.gz'):
           logging.info(f"Decompressing the file: {dest_path}.")
           with gzip.open(dest_path, 'rb') as f_in:
               with open(dest_path[:-3], 'wb') as f_out:
                   shutil.copyfileobj(f_in, f_out)
           os.remove(dest_path)  # Remove the original compressed file
           dest_path = dest_path[:-3]  # Update path to decompressed file
       
       logging.info(f"File processed and saved to {dest_path}.")

   if __name__ == "__main__":
       try:
           s3_files = list_s3_files()
           for s3_key in s3_files:
               process_and_copy_file(s3_key)
       except Exception as e:
           logging.error(f"An error occurred: {e}")	
   ```

   where:

   * `<ACCESS_KEY_ID>` is the Linode access key ID.
   * `<SECRET_ACCESS_KEY>` is the Linode access key.
   * `<BUCKET_URL>` is the URL of the bucket’s cluster. All buckets are hosted by a unique cluster. For example, us-east-1.linodeobjects.com.
   * `<ENCRYPTION_KEY>` is your 32-byte encryption key.
   * `<BUCKET_NAME>` is the Linode bucket name.
   * `<LINODE_FOLDER>` is the path to the Linode folder where you want to copy all the files.
   * `<LOCAL PATH>` is the path on your local machine where you want to store decrypted log files.

2. Enter this command to make sure that your script file is executable:\
   `chmod +x example.py`

3. Enter this command to run the script:\
   `./example.py`\
   Decrypted files are available in the provided path on your local machine.

## Use rclone to decrypt log data

Rclone is a command line tool used for syncing files to remote services. You can use this tool to download decrypted log data by copying data to a local directory on your machine. Alternatively, you can also configure another location, such as a different directory or bucket in your Linode storage or a location in another cloud storage service. These steps apply to Linux or macOS.

1. [Download and install rclone on Linux and macOS](https://rclone.org/install/) .

2. [Configure rclone](https://rclone.org/s3/#linode)  with Linode object storage bucket information. Note that as part of this procedure:
   * Choose **Other** from the list of storage types. Do not select Linode.
   * Enter your Linode object storage access key ID and secret access key when prompted for AWS credentials.
   * For the Access Control List step, select **1** or **private**.

3. Go to your config file. You can typically find the config file in this location:\
   `/<user_directory>/.config/rclone/rclone.conf`\
   As a result of your configuration, your config file should look like this:
   ```
   [test]
   type = s3
   provider = Other
   access_key_id = <ACCESS_KEY_ID>
   secret_access_key = <SECRET_ACCESS_KEY>
   endpoint = <ENDPOINT_URL>
   acl = private
   ```
   where:
   * `<ACCESS_KEY_ID>` is the Linode access key ID.
   * `<SECRET_ACCESS_KEY>`  is the Linode access key.
   * `<ENDPOINT_URL>`  is the URL for the region where your Linode bucket is located.

4. Add these two lines to the config file for the location you just configured:
   ```
   sse_customer_algorithm = AES256
   sse_customer_key = <ENCRYPTION_KEY>
   ```
   where `<ENCRYPTION_KEY>` is the 32-byte encryption key you’ve configured for Linode and provided in SIA for log export.

5. If you want to copy log files to a location on your local machine, run this command on your machine. Log files are decrypted as part of this operation.\
   `rclone copy test:<bucket_name>/<path_to_files> <path_on_local_machine> -P`\
   where:
   * `<bucket_name>` is the name of your Linode bucket.
   * `<path_to_file>` is the path in Linode to your log files.
   * `<path_on_local_machine>` is the path on your local machine where you want to copy the files.

6. If you want to configure another storage area in rclone for your decrypted files, do the following:

   1. Configure another remote location with rclone. Repeat step 2 and configure an alternative configuration with these settings:

      ```
      [alternative]
      type = s3
      provider = Other
      access_key_id = <ACCESS_KEY_ID>
      secret_access_key = <SECRET_ACCESS_KEY>
      endpoint = <ENDPOINT_URL>
      ```

      where:

      * `<ACCESS_KEY_ID>` is the Linode access key ID.
      * `<SECRET_ACCESS_KEY>`  is the Linode access key.
      * `<ENDPOINT_URL>`  is the URL for the region where your Linode bucket is located.

   <br />

   > 📘
   >
   > Make sure the alternative configuration does not have `acl`, `sse_customer_algorithm`, and `sse_customer_key` values.

   2. Run this command to transfer your decrypted data  to an alternative location. You can configure another directory or bucket in Linode, or you can specify another cloud location.

   `rclone copy test:<bucket_name>/<path_to_files> alternative:<bucket_name>/<new_path>`

   where:

   * `<bucket_name>` is the name of your Linode bucket. For the alternative location, this can be your Linode bucket or another container in a cloud service.
   * `<path_to_file>` is the path to your log files.
   * `<new_path>` is the path where you want to place decrypted log files. If you are placing files in the same Linode bucket as your encrypted log files, this can be a new directory in your bucket.

     > 📘
     >
     > You can use the sync or move commands instead of the copy command. To learn more about these rclone commands, see [rclone copy](https://rclone.org/commands/rclone_copy/) , [rclone sync](https://rclone.org/commands/rclone_sync/) , or [rclone move](https://rclone.org/commands/rclone_move/) .

# Sibling pages

* [Create a location](https://techdocs.akamai.com/etp/docs/create-location.md)
* [Create a policy](https://techdocs.akamai.com/etp/docs/create-policy.md)
* [Create a list](https://techdocs.akamai.com/etp/docs/create-list.md)
* [Manage an identity provider](https://techdocs.akamai.com/etp/docs/set-up-idp.md)
* [Set up directories and identity connectors](https://techdocs.akamai.com/etp/docs/setup-directories-identityconnectors.md)
* [Configure access control](https://techdocs.akamai.com/etp/docs/configure-access-control.md)
* [Configure firewall rules](https://techdocs.akamai.com/etp/docs/configure-firewall-rules.md)
* [Encrypt DNS queries and validate DNS responses with DNSSEC](https://techdocs.akamai.com/etp/docs/configure-dot-doh.md)
* [Deploy configuration changes](https://techdocs.akamai.com/etp/docs/deploy-configuration-changes.md)
* [Grant delegated or tenant access](https://techdocs.akamai.com/etp/docs/delegated-tenant-access.md)
* [View connection information](https://techdocs.akamai.com/etp/docs/view-connection-information.md)
* [Enable DNS Protection in China](https://techdocs.akamai.com/etp/docs/dns-protection-china.md)
* [Configure general settings](https://techdocs.akamai.com/etp/docs/configure-general-settings.md)