Cisco Secure Access Help

PDF

Cisco Secure Access Help

Manage Logging

Want to summarize with AI?

Log in

Describes Manage Logging in Cisco Secure Access and explains Where are Logs Stored, Logging to the Secure Access Data Warehouse, and Logging to Amazon S3. It summarizes the behavior, configuration context, and operational considerations presented throughout the topic.


Secure Access allows for the logging of events and traffic. You can configure Secure Access to save these logs to either the United States or Europe. Logs can be saved to your own or a Cisco Managed S3 bucket.

Only event data is stored in a data warehouse. This is any data that might appear in a Secure Access report. Configuration data, such as audit logs and policy settings, remain stored by Cisco in California regardless of a change to the data warehouse's location.

Secure Access logs are CSV-formatted, compressed (gzip), and saved every 10 minutes. For more information, see Log Formats and Versioning.

Note

For Experience Insights, the process for managing ThousandEyes logs is not the same as the Secure Access logs. When you deploy the ThousandEyes agent, your account (that includes your logs) is provisioned by default to the data center in the United States. To move your account to the data center in Europe, contact support@thousandeyes.com.

Where are Logs Stored?

When you create a policy, activity logs are by default saved to the North America – California, US location of the Secure Access data warehouse. You can change the location of the data warehouse to Europe at any time. For more information, see Change the Location of Event Data Logs.

You can also optionally configure logging so that logs are also stored to an Amazon S3 bucket—either your own or one managed by Cisco.

Logging to the Secure Access Data Warehouse

The Secure Access data warehouse is the virtual location where your instance of Secure Access stores its event data logs. By default, Secure Access saves your event data logs to Cisco's California location; however, you can change the location of the data warehouse from North America to Europe at any time. For more information, see Change the Location of Event Data Logs.

Logging to Amazon S3

As well as storing logs to one of its data warehouses, Secure Access can store logs to an Amazon S3 bucket.

By having your logs uploaded to an S3 bucket, you can then automatically download logs so that you can keep them in perpetuity in backup storage outside of the Secure Access data warehouse storage system. Saving to an S3 bucket also gives you the ability to ingest logs through your SIEM or another security tool. This can help you determine if any security events in your Secure Access logs coincide with events in other security tools.

Secure Access Amazon S3 options:

Advantages and Disadvantages of Configuring a Cisco-Managed Bucket

  • Easy to set up and manage.

  • Secure Access supports the rotation of the S3 bucket key every 90 days.

  • Included with your Secure Access license.

  • You cannot add anything to your S3 bucket besides log files from Secure Access. You cannot use your Cisco-managed S3 bucket for any other application.

  • Some SIEM integration types may require advanced privileges for the user accessing the S3 bucket (beyond the basic Read permissions) and as such, may not work with this feature.

  • You cannot get support from Amazon directly for advanced configuration assistance, such as automation or help with the command line.

  • Data can only be stored offline for a maximum of 30 days.


Enable Logging on a Rule in Access Policy

Configure the logging of events and traffic for an access rule in the Access policy. By default, logging is disabled. Logging can be enabled or disabled at any time for any rule.

Before you begin

Procedure

  1. Navigate to Secure > Access Policy.

  2. Click Add Rule > Private Access or Add Rule > Internet Access , or in the access rules table, click the name of an access rule and then click Edit.


    The Enable Logs interface.
  3. At the top of the page, navigate to Logging is enabled or Logging is disabled, and then click Edit.

    1. For Log Request, enable or disable logging for the access rule.
      Secure Access logs all events and requests from the sources to the destinations defined in the access rule.
    2. Click Log Only Security Security Events.
      Secure Access logs only the requests from the sources to the destinations defined in the access rule that match a security filter or integration.
    Note
    If you disable logging for an access rule, Secure Access cannot log the requests and other events to the Activity Search report.

    The Log Setup interface.

Enable Logging to Your Own S3 Bucket

You can configure Secure Access to log events to an Amazon S3 bucket that you manage. To enable logging to a self-managed Amazon S3 bucket, follow the prerequisite steps to set up an AWS account and create an Amazon S3 bucket. Once you have created an S3 bucket in Amazon, configure Secure Access to use it for the storage of logs.

Prerequisites

  • Full Admin user role. For more information, see Manage Accounts.

  • A login to Amazon AWS service (http://aws.amazon.com/console/). If you don't have an account, Amazon provides free sign-up for S3.

    Note
    Amazon requires a credit card in case your usage exceeds free plan usage.
  • A bucket configured in Amazon S3 to be used for storing logs. For more information, see Amazon's S3 documentation.

    Note
    Periods in S3 bucket names and Object Lock in S3 buckets are not supported.

JSON Bucket Policy

When you set up your Amazon S3 bucket, you must add a bucket policy that accepts uploads from Secure Access. Copy the following preconfigured JSON and substitute your S3 bucket name for bucketname. Then, paste the Secure Access S3 bucket policy into your Amazon S3 bucket policy.

{
  "Version": "2008-10-17",
  "Statement": \[
    {
      "Sid": "",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::568526795995:user/logs"
      },
      "Action": "s3:PutObject",
      "Resource": "arn:aws:s3:::bucketname/*"
    },
    {
      "Sid": "",
      "Effect": "Deny",
      "Principal": {
        "AWS": "arn:aws:iam::568526795995:user/logs"
      },
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::bucketname/*"},
    {
      "Sid": "",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::568526795995:user/logs"
      },
      "Action": "s3:GetBucketLocation",
      "Resource": "arn:aws:s3:::bucketname"
    },
    {
      "Sid": "",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::568526795995:user/logs"
      },
      "Action": "s3:ListBucket",
      "Resource": "arn:aws:s3:::bucketname"
    }
  \]
}

Configure Your Own S3 Bucket

Note
You must first configure a bucket in Amazon S3. For more information, see Amazon's S3 documentation.

Procedure

  1. Navigate to Admin > Log Management > Set up cloud storage and click on the Amazon card.

  2. In the Amazon field, type or paste the exact bucket name you created in Amazon S3 and click Verify.

    Secure Access verifies your bucket, connects to it, and saves a README_FROM_UMBRELLA.txt file to your bucket.

  3. Open the README_FROM_UMBRELLA.txt file that Secure Access saved to your bucket, copy the token listed in it, paste it into the Token Number field, and click Save.

  4. A summary page shows you the bucket name. Click Done.

    A pop-up window appears when verification is successful and your Amazon S3 bucket is now connected.

Integrate AWS S3 Bucket with Splunk App

You can integrate your self-managed AWS S3 bucket with the Cisco Cloud Security App for Splunk. Use the data path to your AWS S3 bucket to set up the integration.

The S3 bucket data path consists of the following components:

<AWS S3 bucket name>-<AWS region>/<AWS S3 bucket directory prefix>

where,

  • AWS S3 bucket name and AWS region—the name of your AWS S3 bucket, followed by a dash (-), and the AWS region.
  • AWS S3 bucket directory prefix—the directory prefix (customer folder name) to the AWS S3 bucket.

Sample S3 Bucket Data Path

my_company_name-us-west-1/dnslogs

Use the data path to your self-managed S3 bucket to:

  • Download log files using the AWS CLI.
  • Integrate your AWS S3 bucket with the Cisco Cloud Security App for Splunk. The Cisco Cloud Security App for Splunk enables you to analyze your Secure Access logs that are stored in your AWS S3 bucket. For more information, see Cisco Cloud Security App for Splunk.

Download Files Locally From the S3 Bucket

You can use the Amazon Command Line Interface (CLI) to download files from a self-managed S3 bucket to your local directory.

Prerequisites

  • Install the AWS CLI to your system.

To download files, run the following command. If you want to test the command without syncing files, add the --dryrun flag.

AWS CLI command syntax:

aws s3 sync s3://DATAPATH /path/to/local/directory/

Detailed sample command:

aws s3 sync s3://mycompany-us-west-1/dnslogs /opt/splunk/etc/apps/TA-cisco_umbrella/data/

Enable Logging of DLP Violation Evidence to Your Own S3 Bucket

Secure Access allows you to store Data Loss Prevention (DLP) violation evidence files in an Amazon S3 bucket you manage. This feature enables direct access to the actual files that triggered DLP violations. It helps you audit, investigate, and comply with regulatory requirements more easily. With this capability, you can view full violation files. The files are securely stored in your S3 bucket with a unique naming structure to avoid conflicts and ensure traceability.

Note
  • This feature is available only for organizations using a custom certificate. Cisco Support must enable it on a per-organization basis. It is not supported for organizations using a shared certificate, due to potential security vulnerabilities.

  • You must grant the IAM role provided by Cisco Secure Access the necessary permissions for DLP violation evidence logging to access and write files to your S3 bucket.

  • When enabling this feature, Secure Access verifies the connectivity of your S3 bucket by attempting to write a test file. If unsuccessful, an error message will be displayed in the UI.

Prerequisites

  • Full Admin user role. For more information, see Manage Accounts.

  • An AWS account. Sign up for free at http://aws.amazon.com/console/.

    Note
    Amazon requires a credit card if your usage exceeds the limits of the free plan.
  • An Amazon S3 bucket configured for storing DLP violations. You must first configure a bucket in Amazon S3. For more information, see The Amazon S3 documentation.

    Note
    Periods are not supported in the names of S3 bucket and Object Lock settings.

Procedure

To enable logging of DLP violation evidence to your S3 bucket, perform these steps:

  1. Configure the IAM policy for your S3 bucket

  2. Configure your S3 bucket


Configure IAM Policy for S3 Bucket

Set up your Amazon S3 bucket by adding a bucket policy that enables Secure Access for uploading violation files using the specific IAM role provided.

Grant the necessary permissions to the IAM role (dlp-evidence) provided by Cisco for Secure Access to verify and upload files to your bucket. Refer to the sample bucket policy in the documentation. Substitute your bucket name and account details.

Procedure

  1. Create a production KMS key.

    aws kms create-key --description "KMS key for bucket_name" --profile [YOUR-PROFILE]
    Note

    Save the Key ID from the output, for example, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

  2. Create a production KMS key alias.

    aws kms create-alias --alias-name alias/[bucket_name] --target-key-id [PROD-KMS-KEY-ID] --profile [YOUR-PROFILE]
  3. Apply the production KMS key policy.

    Create the policy file at this location:
    /tmp/prod-kms-policy.json
    Note
    You may use Amazon S3-managed encryption (SSE-S3). However, we strongly recommend using AWS KMS with a customer-managed key (CMK) for tighter access control and auditing.

    The KMS key policy applies only when you use a CMK. It is not required for S3-managed encryption as shown below. In the KMS key policy, replace YOUR-ACCOUNT-ID with the customer account ID.

    {
      "Version":  "2012-10-17",
      "Statement":  [
        {
          "Sid":  "Enable IAM User Permissions",
          "Effect":  "Allow",
          "Principal":  {
            "AWS":  [
                "arn:aws:iam::{YOUR-ACCOUNT-ID}:root",
            ]
          },
          "Action":  "kms:*",
          "Resource":  "*"
          },
          {
            "Sid":  "Allow DLP Violations Role to Encrypt",
            "Effect":  "Allow",
            "Principal":  {
                "AWS":  "arn:aws:iam::050208289548:role/dlp-evidence"
            },
            "Action":  [
              "kms:GenerateDataKey",
              "kms:Encrypt",
              "kms:DescribeKey",
              "kms:CreateGrant"
            ]
            "Resource":  "*"
          }
      ]
    }
    To apply the KMS key policy, execute the command:
    aws kms put-key-policy --key-id [PROD-KMS-KEY-ID] --policy-name default --policy file:///tmp/prod-kms-policy.json --profile [YOUR-PROFILE]
  4. Create a production S3 Bucket.

    aws s3api create-bucket --bucket [bucket_name] --region us-west-2 --create-bucket-configuration LocationConstraint=us-west-2 --profile [YOUR-PROFILE]
  5. Enable encryption on the production bucket using full key ARN.

    aws s3api put-bucket-encryption --bucket [bucket_name] --server-side-encryption-configuration '{"Rules":[{"ApplyServerSideEncryptionByDefault":{"SSEAlgorithm":"aws:kms","KMSMasterKeyID":"arn:aws:kms:us-west-2:[YOUR-ACCOUNT-ID]:key/[PROD-KMS-KEY-ID]"}}]}' --profile [YOUR-PROFILE]
  6. Enable versioning for the production bucket.

    aws s3api put-bucket-versioning --bucket [bucket_name] --versioning-configuration Status=Enabled --profile [YOUR-PROFILE]
    
  7. Block public access to the production bucket.

    aws s3api put-public-access-block --bucket [bucket_name] --public-access-block-configuration BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true --profile [YOUR-PROFILE]
  8. Apply the production bucket policy.

    Copy the following preconfigured JSON and replace bucket_name with your S3 bucket name and replace YOUR_ACCOUNT_ID with your account ID. Insert the Secure Access S3 bucket policy into your Amazon S3 bucket policy.

    {
      "Version":  "2008-10-17",
      "Statement":  [
        {
          "Sid": "AllowRootAccountFullAccess",
          "Effect": "Allow",
          "Principal":  {
            "AWS":  "arn:aws:iam::[YOUR-ACCOUNT-ID]:root"
            },
          "Action":  "s3:*",
          "Resource":  [
              "arn:aws:s3:::{bucket_name}",
              "arn:aws:s3:::{bucket_name}/*"
            ]
          },
          {
            "Sid":  "AllowUploadLocationAndList",
            "Effect":  "Allow",
            "Principal":  {
              "AWS":  "arn:aws:iam::050208289548:role/dlp-evidence"
          },
          "Action":  [
              "s3:PutObject",
              "s3:DeleteObject",
              "s3:GetEncryptionConfiguration",
              "s3:GetBucketLocation",
              "s3:ListBucket",
              "s3:GetBucketAcl"
          ],
          "Resource":  [
              "arn:aws:s3:::{bucket_name}",
              "arn:aws:s3:::{bucket_name}/*"
          ]
        },
        {
          "Sid":  "DenyGetObjectFromViolationServiceRole",
          "Effect":  "Deny",
          "Principal":  {
            "AWS":  "arn:aws:iam::050208289548:role/dlp-evidence"
            },
          "Action":  "s3:GetObject",
          "Resource":  "arn:aws:s3:::{bucket_name}/*"
        }
      ]
    }

    To apply the bucket policy, execute the command:

    aws s3api put-bucket-policy --bucket [bucket_name] --policy file:///tmp/prod-bucket-policy.json --profile [YOUR-PROFILE]
  9. Verify if the bucket policy is correctly applied by executing these commands:

    aws s3api head-bucket --bucket [bucket_name] --profile [YOUR-PROFILE]
    aws s3api get-bucket-policy --bucket [bucket_name] --profile [YOUR-PROFILE]
    aws s3api get-bucket-encryption --bucket [bucket_name] --profile [YOUR-PROFILE]

Configure Your Own S3 Bucket

Before you begin

Ensure that an Amazon S3 bucket has been created for your organization.

Procedure

  1. Navigate to Admin > Log Management. In the DLP Violation Evidence card, select Configure.

  2. In the Amazon S3 Bucket field, enter the bucket name you created in Amazon S3 and click Verify.

    1. Secure Access attempts to verify and connect to your bucket.

    2. A test file is created in the S3 bucket to validate connectivity and permissions.

      The First File DLP interface.
    3. After successful validation, a confirmation message will be displayed.

  3. After successful verification, you can view the folder structure in your S3 bucket. The organization folder structure uses the org ID as a prefix to store DLP violation evidence files.

    The Org Folder interface.

The S3 bucket is configured and validated to store DLP violation evidence files.

Integrate AWS S3 Bucket with Splunk App

Integrate your AWS S3 bucket with the Cisco Cloud Security App for Splunk using the S3 bucket data path.

Components of S3 Bucket Data Path

The components of the S3 bucket data path are:

<AWS S3 bucket name>-<AWS region>/<AWS S3 bucket directory prefix>
  • AWS S3 bucket name and AWS region—the name of your AWS S3 bucket, followed by a dash and the AWS region.
  • AWS S3 bucket directory prefix—the directory prefix (customer folder name) in the AWS S3 bucket.

Sample S3 Bucket Data Path

An example of a sample S3 bucket data path is:

my_company_name-us-west-1/dnslogs

Use the S3 bucket data path to:

  • Download log files using the AWS CLI.
  • Integrate your AWS S3 bucket with the Cisco Cloud Security App for Splunk. The Cisco Cloud Security App for Splunk enables you to analyze Secure Access logs stored in your AWS S3 bucket. For more information, see Cisco Cloud Security App for Splunk.

Download Files Locally From the S3 Bucket

You can use the Amazon Command Line Interface (CLI) to download files from a self-managed S3 bucket to your local directory.

Prerequisites

Before downloading files from the S3 bucket, ensure that AWS CLI is installed on your system.

To download files from the S3 bucket, run the AWS CLI command.

aws s3 sync s3://DATAPATH /path/to/local/directory/
Note
Use the --dryrun flag to test the command without syncing files.

An example of an AWS CLI command is:

aws s3 sync s3://mycompany-us-west-1/dnslogs /opt/splunk/etc/apps/TA-cisco_umbrella/data/

Troubleshooting

When you configure a S3 bucket to enable the DLP Violation Evidence feature, you may encounter one of these error conditions.

  • Bucket not found

    When the S3 bucket cannot be found during configuration, the UI displays the message: "We are unable to find the bucket. Please check the bucket path and try again."

  • IAM permissions error

    If the IAM permissions are not properly configured for write access, the UI displays the message: "IAM permissions are not properly configured for write access. Please check your bucket policy."

  • KMS key policy error

    If the KMS key policy is not properly configured, the UI displays the message: "An unexpected error occurred during verification. Please try again or contact support."

  • Successful configuration

    When the bucket is properly configured, the UI displays the message: "We are sending data to your Amazon S3 bucket storage."


Enable Logging to a Cisco-Managed S3 Bucket

You can configure Cisco Secure Access to log events to an Amazon S3 bucket, which is managed by Cisco.

Cisco configures all Cisco-managed buckets to use Amazon Server-Side Encryption with S3-Managed Keys (SSE-S3, AES-256). The encryption and keys are managed by Amazon. Cisco and the Secure Access user account (customer) don't exchange keys, but the data is still encrypted at rest. More information about S3 buckets and encryption is available on the Amazon website by searching for "SSE-S3, AES-256”.

Secure Access provides access to Cisco-managed S3 buckets using Amazon's IAM system. When the S3 bucket is provisioned, Secure Access provides the S3 bucket's key and secret in the Admin > Log Management page.

You must copy your S3 bucket key credentials to your environment. Secure Access does not store your keys during the generation process. If you lose your keys, you can not recover them. Instead, you must rotate the keys in Secure Access.

A Cisco user account can write files to the S3 bucket, and the customer IAM user can read from the S3 bucket. A customer IAM user can rotate their keys at any time.

Note
Customer logs are also encrypted in transit between Cisco's log management infrastructure and Amazon S3.

Best Practices for Rotating an S3 Bucket Key

Beginning on May 15, 2025, Secure Access organizations must rotate their IAM key credentials for a Cisco-managed S3 bucket every 90 days. If a Cisco-managed S3 bucket key expires, Secure Access autorotates the IAM key and continues to log events to the S3 bucket. To access the S3 bucket, the organization must regenerate the IAM key for the Cisco-managed S3 bucket. For more information, see Rotate Keys on a Cisco-Managed S3 Bucket.

Note

Rotating IAM keys every 90 days only applies to Cisco-managed S3 buckets not self-managed S3 buckets.

If your organization is unable to rotate the IAM key credentials for the Cisco-managed S3 bucket, we recommend that you use a self-managed S3 bucket.

About the Notifications for the IAM Key

  • Secure Access provides periodic notifications to an organization when the IAM key for a Cisco-managed S3 bucket expires. Secure Access sends email notifications to the email account that was used during the initial purchase or renewal of your Cisco Secure Access license.
  • An organization can view notifications about the expired IAM key on the Overview page in Secure Access. After the organization successfully rotates the IAM key for the Cisco-managed S3 bucket, Secure Access removes the IAM key notifications on the Overview page.

Configure a Cisco-Managed S3 Bucket

In Secure Access, create a Cisco-managed Amazon S3 bucket to store the event logs for the organization.

Before you begin

Procedure

  1. Navigate to Admin > Log Management > Set up cloud storage > click Cisco.

  2. Select a Region and a Retention Duration.

    • Select a Region—Regional endpoints are important to minimize latency when downloading logs to your servers.

      The regions that are listed match those available in Amazon S3. Not all regions are available.

      Pick a region that is closest to you. If you wish to change your region in the future, you will need to delete your current settings and start over.

    • Select a Retention Duration—Select 7, 14, or 30 days. Beyond the selected time period, all data will be purged and cannot be retrieved.

      We recommend a smaller time period if your ingestion cycle is regular. The retention duration can be changed at any time.

  3. Click Save.

    Secure Access activates its ability to export to an AWS S3 account. When activation is complete, the Amazon S3 Summary page appears.

  4. Copy credentials from this page and store them in a safe place.

    This is the only time that the Access and Secret keys are made available to you. These keys are required to access your S3 bucket and download logs. If you lose these keys, they must be regenerated.
  5. Once keys are copied and safe, click Done.


Rotate Keys on a Cisco-Managed S3 Bucket

Rotate the IAM keys on the Cisco-managed S3 bucket for the organization. For more information, see Best Practices for Rotating an S3 Bucket Key

Before you begin

Procedure

  1. In Secure Access, navigate to Admin > Log Management.

  2. Click Regenerate Keys.

  3. Click Regenerate Keys to confirm and update the IAM key on the Cisco-managed S3 bucket.

  4. Copy the updated key and secret to your environment.

What to do next

Note
After you regenerate the IAM keys on the Cisco-managed S3 bucket, copy the S3 bucket keys to any systems that integrate with the event logs from the Cisco-managed S3 bucket.

Get the S3 Bucket Data Path

The Secure Access Amazon S3 page provides a summary of the configured Cisco-Managed S3 bucket including the data path to your Amazon bucket.

Use the data path to your Cisco-managed S3 bucket to:

  • Download log files with the AWS CLI.
  • Set up your Cisco-managed S3 bucket with the Cisco Cloud Security App for Splunk. The Cisco Cloud Security App for Splunk enables you to analyze your Secure Access logs found in your AWS S3 bucket. For more information, see Cisco Cloud Security App for Splunk.

Before you begin

Procedure

  1. In Secure Access, navigate to Admin > Log Management, click Manage.

  2. Navigate to Data Path.

    The data path to your Amazon bucket is composed of several fields.

    <AWS S3 bucket name>-<AWS region>/<AWS S3 bucket directory prefix>
    • AWS S3 bucket name and AWS region—the name of the AWS S3 bucket managed by Cisco (cisco-managed), a dash (-), and the AWS region.
    • AWS S3 bucket directory prefix—the directory prefix (customer folder name) to the Cisco-managed AWS S3 bucket.

    Sample S3 Bucket Data Path

    cisco-managed-us-west-1/2069997_6ff2802af17337def701c2e7816cf14913zf848a

Verify Your Access to an S3 Bucket

To verify that you have access to a Cisco-managed S3 Bucket, you can configure the AWS CLI with your newly generated keys.

Before you begin

  • To run the Amazon command-line interface (CLI) locally, install the AWS CLI in your environment. For information about installing the AWS CLI, see the Amazon S3 documentation.

Procedure

  1. In a shell, run aws configure.

    AWS Access Key ID [None]\: <Enter Your Generated Access Key>
    AWS Secret Access Key [None]\: <Enter Your Generated Secret Key>
    Default region name [None]\: <Enter Your S3-Bucket Region>
    Default output format [None]\:
              
  2. List one of the saved logs in your Cisco-managed S3-Bucket.

    For example, run:

    aws s3 ls s3://cisco-managed-us-west-1/<org_id>/<s3-bucket-instance>/dnslogs -recursive
    aws s3 ls s3://cisco-managed-us-west-1/<org_id>/<s3-bucket-instance>/auditlogs -recursive

Download Files Locally From the Cisco-Managed S3 Bucket

You can use the Amazon command-line interface (CLI) to download files from a Cisco-managed S3 bucket to your local directory.

Run the AWS CLI to download your files from a Cisco-managed S3 bucket to your local directory. To run the AWS CLI command in test mode (without syncing files), use the --dryrun flag.

AWS CLI command syntax:

aws s3 sync s3://DATAPATH/ /path/to/local/directory/
Note
You must append a forward slash (/) to the DATAPATH.

Sample Command

aws s3 sync s3://cisco-managed-us-west-1/2069997_6ff2802af17337def701c2e7816cf14913zf848a/ /opt/splunk/etc/apps/TA-cisco_umbrella/data/

Best Practices: Download Files From the Cisco-Managed S3 Bucket

  • When you download files from a Cisco-managed S3 bucket, ensure that you only download one copy of each log file. If you download log files multiple times, Cisco reserves the right to suspend the download of logs from a Cisco-managed S3 bucket (through the rotation of keys or other methods).

  • Once files are downloaded to a local directory, you can delete the files. Only delete files that are older than the Retention Duration value configured in Secure Access. Otherwise, the next sync command will download the deleted files again.


Migrate From Cisco S3 Bucket to Your Own S3 Bucket

Migrate the logging of events from a Cisco-managed S3 bucket to your own Amazon S3 bucket.

Before you begin

Procedure

  1. Navigate to Admin > Log Management.

  2. Download your log files in the Cisco-managed S3 bucket to your environment.

  3. Stop logging events to the Cisco managed S3 bucket.

    For more information, see Stop Logging .
    1. Click Stop Logging.
    2. Click Stop logging data to confirm your request.
  4. To remove the storage for the Cisco-managed S3 bucket, click Delete Storage.

  5. Configure the logging of events to your own Amazon S3 bucket.

    For more information, see Enable Logging to Your Own S3 Bucket
    1. Navigate to Admin > Log Management.
    2. Click Set up cloud storage.

      The S3 Bucket Setup Cloud Storage interface.
    3. Click Amazon and then configure your Amazon S3 bucket in Secure Access.

      The S3 Bucket Cloud Storage interface.

Change the Location of Event Data Logs

By default, Secure Access saves event data logs to its California data warehouse location. You can change the location of the data warehouse for your organization from North America to Europe at any time.

Only event data is stored in the data warehouse. This is any data that might appear in a Secure Access report. Configuration data, such as audit logs and policy settings, remain stored by Cisco in California regardless of a change to the data warehouse's location.

Implications When You Change Data Warehouse Locations

When you change the location of the data warehouse from North America to Europe or Europe to North America, the data that your reports use changes. Because Secure Access' reports use the data saved to logs that are stored to the data warehouse, only data from the data warehouse's current location is available to reports. Existing logs do not change locations. Data stored in North America stays in North America. Data stored in Europe stays in Europe. To generate reports using data from the previous data warehouse location, you must change the data warehouse location back to the previous location.

Caution
Although you can change back from the European data warehouse location to the North American data warehouse location, we do not recommend this procedure. Changing back and forth between data warehouse locations results in the splitting of your Secure Access event data between locations. This splitting lessens the accuracy of your Secure Access reports. We strongly recommend that once you change the location of your data warehouse from North America to Europe that you do not change back unless the change back is intended to be permanent.
Note
When you change the data warehouse's location, Secure Access' reporting functionality is temporarily suspended while the switchover to a new location occurs. For activity search data, the switchover period lasts only a few minutes; however, other reporting data may take several hours to begin appearing in reports.

Log Retention

Logs are deleted when the retention date expires as per the Secure Access Privacy Data Sheet.

Logs are not deleted when you change the data warehouse location.

Before you begin

Procedure

  1. Navigate to Admin > Log Management. In the Data Storage area, click Change Location.

  2. Select a new location and click Save.

  3. Confirm that you understand the consequences of changing the location where logs are physically stored and click Confirm.

    The data warehouse location is changed and Secure Access now stores event data logs to this new location. Logging to the old location stops.

    Note
    Logs stored at the previous location are not deleted until the retention period expires—30 days for detailed data and two years for summary data.

Log export failures to Amazon S3

A log export failure to Amazon S3 is a log delivery error that

  • occurs when the Amazon S3 bucket configuration (including bucket name, path, access policy, or credentials) is invalid or inaccessible

  • results in logs not being successfully transferred to the Amazon S3 destination

  • triggers automatic retention, deletion, and notification policies in Secure Access

This policy replaces any previous S3 log export retention policy. Keeping S3 configurations valid and monitoring the Secure Access user interface helps prevent data loss.

Secure Access provides the capability to export logs to Amazon S3 buckets managed by either customers or Cisco. For successful log delivery, the S3 bucket configuration must remain valid and accessible. Export failures most commonly occur due to changes in the S3 bucket, access policies, or credentials.

Detection and notification

Secure Access continuously checks the status of Amazon S3 log exports. Export failures are detected when any of the following conditions occur:

  • The S3 bucket or path is renamed or deleted

  • The access policy is modified or removed

  • S3 access credentials expire or become invalid

When an export failure is detected, Secure Access is unable to deliver log files to the configured S3 destination. The Admin > Log Management page displays Last Sync timestamp for reference. The job status will become Not configured once the job is paused. This behavior is applicable only for user-managed buckets, not for Cisco-managed buckets.

Export job pause policy

When an export failure is detected and persists for twenty-four hours, the S3 log export job is automatically paused. Secure Access stops attempting to upload logs until the configuration is corrected and the job is manually restarted.

Retry, retention, and deletion policy

When an export failure is detected:

  • Secure Access tries to upload affected log files three times in immediate succession.

  • If all upload attempts fail, the failed log files are retained for 24 hours from the initial failure. This retention window allows time to correct any misconfiguration and prevent data loss

  • If the S3 export misconfiguration is not resolved within 24 hours, the retained log files are permanently deleted from Secure Access. These files cannot be recovered.

Log export recovery considerations

  • After a misconfiguration is corrected, the S3 log export job becomes available to restart from Admin > Log Management > ManageclickStart Logging. A success notification appears when you successfully start logging.

  • Resolve any misconfiguration within 24 hours to prevent permanent loss of log data.

Data recovery considerations

  • Logs deleted after the 24-hour retention window cannot be recovered through S3 export.

  • Event data for the affected period may still be accessible through Secure Access reporting APIs within the standard data retention period, which is typically up to 90 days.

Frequently Asked Questions

Will I receive an email notification if my S3 export fails?

No. Email notifications are not sent for S3 export failures.

Can I recover logs deleted after a misconfiguration?

No. Deleted logs cannot be recovered through S3 export. However, event data may be available by using reporting APIs if it is still within the retention period.

How do I know if my S3 export is paused?

The Admin > Log Management page displays the current job status and timestamps for additional information.


Stop Logging

You can stop logging at any time. When logging is stopped, Secure Access immediately stops sending logs to your S3 storage.

Before you begin

Procedure

  1. Navigate to Admin > Log Management.

  2. Click Stop Logging.

  3. Do not check the box to Delete all logs from S3.

    If you check the box, you are acknowledging that you are deleting all logs and to stop sending logs.
  4. Click Stop logging data to confirm your request.

What to do next

To resume logging, click Start logging.

To delete storage, click Delete Storage.


Delete Logs

You can delete previous log data when you stop logging. See Stop Logging.

Before you begin

Procedure

  1. Navigate to Admin > Log Management > Manage > Stop logging.

  2. Check the box to Delete all logs from S3.

  3. Click Stop logging data to confirm your request.

    Logging of activity data stops, and all activity logs are deleted.

What to do next

You can restart logging at any time. Click Start Logging to resume logging.