Agentic Data Plane
Preview

Export the Audit Log to a Bucket

Keep a copy of the audit log in a bucket you own. The export sends audit events to Amazon S3 or Google Cloud Storage as Open Cybersecurity Schema Framework (OCSF) events shortly after they’re recorded. Use it to load audit events into your own storage or security tools.

After reading this page, you will be able to:

  • Set up a continuous export of the audit log to an Amazon S3 or Google Cloud Storage bucket

  • Check that events reach the bucket and fix a failing export

  • Change the export’s destination or stop the export

How the export works

Each Agentic Data Plane environment has at most one export, which writes to one bucket.

  • The export writes objects under the prefix redpanda-adp-audit-log/, in one folder per day, based on the event time in UTC. For example, redpanda-adp-audit-log/2026/11/29/.

  • Each object is a gzip-compressed newline-delimited JSON (NDJSON) file with the .ndjson.gz extension. Each line is one OCSF 1.8 event. Attributes that OCSF doesn’t define for the event’s class are under unmapped.

  • New events usually reach the bucket within a minute.

  • When you start the export, it sends recent events, then each new event. Older events aren’t exported, so start the export before you need a copy of an event.

  • Delivery is at least once, so an event can arrive twice, for example after the export restarts. Deduplicate events if your tools need exactly one copy.

Exported events carry the same data as the audit log, including user identities, resource names, network information, configuration changes, and captured request or response data. Limit who can read the bucket.

Prerequisites

  • Your account needs the Admin role, or an access policy that grants these actions. Every action also needs AuditLogExport.get.

    • Action::"AuditLogExport.get" to view the export. Without it, the export doesn’t appear in Settings or in the Export menu.

    • Action::"AuditLogExport.create" to start it.

    • Action::"AuditLogExport.update" to change its destination.

    • Action::"AuditLogExport.delete" to stop it.

  • A bucket in Amazon S3 or Google Cloud Storage.

  • Credentials that can write to the bucket:

    • For Amazon S3, an access key for an Identity and Access Management (IAM) user. You attach a policy to the user during setup.

    • For Google Cloud Storage, a JSON key for a service account that has the Storage Object User role (roles/storage.objectUser) on the bucket. The Storage Object Creator role isn’t enough, because the export sometimes overwrites an object.

If you can view the export but lack another action, you can’t change it. Ask an administrator for the action you need from this list.

Set up the export

  1. Open the export setup page in one of these ways:

    • Click your name in the sidebar, then click Settings. In the Data export section, click Set up on the Bucket export row.

    • Open Audit log under Observability in the sidebar. Click Export, then click Export to a bucket….

  2. For Storage, select Amazon S3 or Google Cloud Storage.

  3. In the Bucket field, enter the name of your bucket.

  4. For Amazon S3, select the bucket’s region.

  5. In the Credentials section, set each field to a secret that holds the credential. Select New, enter a name for the secret and its value, then click Create secret.

    • For Amazon S3, create one secret for the access key ID and one for the secret access key.

    • For Google Cloud Storage, create one secret for the service account key and paste the JSON key as its value.

    Select Existing only for a secret you created on this page earlier. A secret created from Secrets store in the sidebar doesn’t work for the export.

  6. For Amazon S3, copy the policy from the IAM policy section and attach it to the IAM user that owns the access key. The policy allows s3:PutObject and s3:PutObjectAcl on the export’s objects in your bucket.

  7. Click Start export.

The export usually starts within a minute. To confirm that events reach the bucket, see Check the export.

Check the export

To see whether events reach the bucket, open the export in one of these ways:

  • Click your name in the sidebar, click Settings, and click the S3 export or GCS export row in the Data export section.

  • Open Audit log under Observability in the sidebar. Click Export, then click S3 export or GCS export.

The export shows up to date when events are reaching the bucket. If the export has a problem, the page names it and says what to do. For each message and how to fix it, see Troubleshoot the export.

Change the destination

  1. Open the export, as described in Check the export.

  2. Click Edit.

  3. Change the bucket, region, or credentials.

  4. Click Save and restart.

The export restarts with the new settings.

If you change a credential’s value in the secret store, the export keeps using the old value until it restarts. To restart it, click Edit, then click Save and restart.

Stop the export

  1. Open the export, as described in Check the export.

  2. In the Stop this export section, click Stop export.

  3. Click Stop export again to confirm.

Objects already written stay in the bucket. If you start the export again later, the bucket can receive some events a second time.

Troubleshoot the export

Message What to do

The bucket does not exist

Click Edit on the export page, correct the bucket name, and click Save and restart.

The access key cannot write to the bucket

Attach the policy from the IAM policy section of the setup page to the IAM user that owns the access key.

The service account key cannot write to the bucket

Grant the service account the Storage Object User role on the bucket.

Writes to the bucket are failing
AWS refused the upload
Google Cloud refused the upload

Click Technical details on the export page to see the error that Amazon or Google Cloud returned. Fix the bucket or credentials it names, then click Edit and Save and restart.

Status reports stopped

Events can still be arriving. Look for new objects in today’s folder (UTC) in the bucket. If the message doesn’t clear, contact Redpanda support and include the time of the last report from Technical details.

The export stopped because of an unknown error

Contact Redpanda support and include the time from Technical details.

A selected secret is not readable by Redpanda Connect

Select New in the credential field and create the secret on the setup page, then save again.

Bucket export is not available

Your account lacks the export permissions, or the export isn’t available in this environment. Ask an administrator for the permissions listed in Prerequisites.

You don’t have access to this export

Your account lacks AuditLogExport.get. Click Copy access request and send the copied message to an administrator.