Before you begin
- You need permission to manage integrations in Ryvn. Read access lets you inspect the connection; write access is required to create, test or delete it.
- Have an existing bucket and credentials that can apply the generated permissions. Ryvn does not create the bucket.
- S3: have the bucket’s region and an ARN for a new, dedicated customer IAM role. Use credentials that can create the role and attach its policy. The setup script creates that role; it does not adopt or overwrite an existing role. If you use an S3 KMS key, also have its key ARN.
- GCS: the bucket must use uniform bucket-level access. Use credentials that can update its IAM policy.
audit/. Each slash-separated segment must be nonempty and contain only ASCII letters, digits, ., _ or -; . and .. cannot be entire segments. End the prefix with /. The maximum is 900 ASCII characters, but the backend may require a shorter prefix to leave room for the rest of each object key.
Configure the connection
1
Create the connection
- Dashboard
- CLI
Open Settings > Connections > Audit export. Enter the Bucket and Prefix. The supported provider is selected automatically. For S3, also enter Region, Customer role ARN and, if needed, KMS key ARN.Click Create connection.
2
Apply the setup
- Dashboard
- CLI
Review Setup script, then use Copy to paste it into your cloud shell, or Download to save it. The displayed text exactly matches Copy, including its quoted shell wrapper. Download saves the raw script returned by Ryvn without the wrapper.Sign in to the bucket’s account or project with permission to apply the changes. For a downloaded file, run
sh ryvn-audit-export-setup.sh after reviewing it.3
Test access
- Dashboard
- CLI
Return to the connection and click Test access.
<prefix>.ryvn-probe/. It leaves the object in your bucket for you to remove. A successful test enables audit export for your organization; it does not confirm that audit records have arrived. Check status and your bucket separately.Status and troubleshooting
Use Refresh on the connection page orryvn describe connection --type audit-export to read the latest returned status. Add -o json for structured output. The dashboard and CLI show the returned status and Reason without inferring success from activity or a successful access test.
Other returned values are shown as received. Processed through (exclusive) is a historical processing boundary: it excludes the timestamp shown and may come from a previous destination. It does not prove that every event reached the current bucket. Expired interval start/end bound gaps in retained history; they do not mean every moment between them is missing or give an event-loss count.
Delivery health is not currently reported for this connection. A successful access test confirms write access. To check delivery, look for exported
.jsonl.gz files under your configured bucket prefix. If expected records are missing, contact Ryvn support.
If an access test fails, read Reason and the test error, check the bucket, prefix and generated permissions, and allow IAM changes to propagate before retrying. For S3, confirm the region, new dedicated role and any KMS requirements in the setup. For GCS, confirm uniform bucket-level access and the exact service account shown in setup. If a prefix is rejected for object-key length, use a shorter prefix.
Exports are limited to the applicable log-retention period; outages do not extend it. Capture can miss records before export. Exports are gzip-compressed JSON Lines (.jsonl.gz) under your configured prefix, with one audit_log.v1 record per line. Duplicate records are possible; deduplicate by eventId. You control retention and processing after delivery to your bucket.
Export object layout
Objects use this key layout under your configured prefix:eventId when processing files.
Replace or delete the connection
Deleting the connection disables audit export for your organization. Changing the bucket, prefix or other destination settings requires deleting and recreating the connection. Changing destinations keeps saved export progress; it does not restart the full history in the new bucket. Some recent records may be repeated.- Dashboard
- CLI
Click Delete connection, then Confirm delete. To replace it, create the new connection, apply its setup and test access again.