Azure Blob Storage
Create a storage account and container
Generate a SAS token
- On the Home page, select Storage accounts.
- Under Name, select the storage account you want to use.
- Under Data storage, select Containers.
- Select the container you want to use.
- In the left sidebar, under Settings, select Shared access tokens.
- Open the Permissions dropdown and select Create, Read, Add, List, and Write. Deselect all other options.
- Set an expiry date that complies with your secret rotation policy.
- Select Generate SAS token and URL.
-
Copy the value of the Blob SAS URL field. The URL has this format:
Build the configuration JSON
audit-logs segment in TARGET_URL is the path within the container. You can request a different path when you contact your Cognite representative.Share the configuration with Cognite
Amazon S3
Create an S3 bucket
Create an IAM policy
EXAMPLE-BUCKET with the name of your bucket:audit-logs segment in s3:prefix is the path within the bucket. You can request a different path when you contact your Cognite representative.See Creating IAM policies in the AWS documentation.Create an IAM user and access key
- Create an IAM user and attach the policy you created directly to the user.
- Open the user and select Create access key.
- Copy the Access key ID and Secret access key.
Build the configuration JSON
Share the configuration with Cognite
Google Cloud Storage
Create a Cloud Storage bucket
Create a custom IAM role
Create a service account and grant access
- Create a service account in your Google Cloud project. See Create service accounts in the Google Cloud documentation.
- On the Cloud Storage bucket, grant the custom role you created to the service account. Grant the role at the bucket level, not the project level.
- Open the service account, go to the Keys tab, and select Add key → Create new key.
- Select JSON as the key type and download the key file.
Build the configuration JSON
GCS_SERVICE_ACCOUNT_KEY to the entire contents of the downloaded key file as a single-line string:audit-logs segment in TARGET_URL is the path within the bucket. You can request a different path when you contact your Cognite representative.Share the configuration with Cognite
Further reading
- About CDF audit logs — Schema and delivery overview
- Audit log query reference — Query the logs you are streaming
- Audit log event types reference — All
serviceNameandeventTypevalues