Documentation

Export to Amazon S3

Gzip NDJSON files in your bucket, one per batch, written with a key that can do nothing else.

What ModelRiver writes

Each batch is one gzip-compressed NDJSON object (one event per line):

TEXT
1<prefix>/<yyyy>/<mm>/<dd>/<first-event-id>_<last-event-id>.ndjson.gz

The date is the first event's date in UTC. A retried batch is written to the same key, so the bucket never holds the same event twice. Send test writes <prefix>/_modelriver_test.json.

Objects are private: ModelRiver sets no ACL and no public cache headers. Your bucket's default encryption applies.

1. Create a bucket and an IAM user

Use a bucket that only holds audit logs, or a prefix of one, such as modelriver/audit. Keep the bucket's Block Public Access settings on.

Create an IAM user (or a dedicated access key) for ModelRiver, with only this policy. Replace the bucket name and prefix:

JSON
1{
2 "Version": "2012-10-17",
3 "Statement": [
4 {
5 "Sid": "ModelRiverAuditExportWrite",
6 "Effect": "Allow",
7 "Action": "s3:PutObject",
8 "Resource": "arn:aws:s3:::acme-audit-logs/modelriver/audit/*"
9 }
10 ]
11}

This allows writing objects under the prefix and nothing else: no reading, listing or deleting. ModelRiver doesn't need more. (Policy untested against a live account.)

If the bucket uses SSE-KMS with a customer-managed key, also allow kms:GenerateDataKey on that key.

To stop anyone from overwriting or deleting delivered files, turn on S3 Versioning or Object Lock for the bucket. A retry writes the same content again, so a new version holds the same events.

2. Configure the export

In Organization settings → Audit log export, choose Amazon S3 and fill in:

FieldValue
Bucketacme-audit-logs
Regionus-east-1
Key prefixmodelriver/audit (optional)
EndpointLeave blank for AWS. For S3-compatible storage, the HTTPS endpoint (for example https://s3.example.com). For Cloudflare R2, choose Cloudflare R2 instead (guide).
Access key ID, Secret access keyThe IAM user's access key.

The access key is encrypted at rest and never shown again. The page shows only its last four characters.

Choose Send test, then check that modelriver/audit/_modelriver_test.json appeared in the bucket.

Reading the files

Each object is gzip NDJSON (untested):

Bash
aws s3 cp s3://acme-audit-logs/modelriver/audit/2026/11/25/ . --recursive
zcat *.ndjson.gz | jq -c 'select(.high_risk)'

Most SIEMs can read the bucket directly, for example Splunk Add-on for AWS (generic S3 input), Datadog's log forwarder, or Microsoft Sentinel's Amazon Web Services S3 connector. Give them their own read-only credentials, not ModelRiver's.