Configure audit logs
Enable Pinecone audit logging to an Amazon S3 bucket to track user, service account, and API actions for compliance, security review, and WORM retention.
This page describes how to configure audit logs in Pinecone. Audit logs provide a detailed record of user, service account, and API actions that occur on the management and control plane within Pinecone. Pinecone supports Amazon S3 as a destination for audit logs.
Enable audit logs
Section titled “Enable audit logs”-
Set up a IAM policy and role in Amazon S3.
-
Go to Settings > Audit logs in the Pinecone console.
-
Enter the Role ARN of the IAM role you created.
-
Enter the name of the Amazon S3 bucket you created.
-
Click Enable audit logging.
Once you enable audit logs, Pinecone will start writing logs to the S3 bucket. In your bucket, you will also see a file named audit-log-access-test, which is a test file that Pinecone writes to verify that it has the necessary permissions to write logs to the bucket.
Make your audit-log bucket immutable (recommended)
Section titled “Make your audit-log bucket immutable (recommended)”Because audit logs are written to an Amazon S3 bucket you control, you can enforce write-once-read-many (WORM) immutability so that log files can't be modified or deleted — including by your own administrators — for a retention period you define. This is recommended for compliance use cases.
Enable S3 Object Lock in compliance mode with a retention period. Object Lock requires bucket versioning and, in general, must be enabled when the bucket is created — plan for it when you set up the IAM policy and S3 bucket above. Set the retention period to at least your required audit-log retention. Pinecone writes each log batch as a new, uniquely named file and doesn't modify or delete previously written logs.
View audit logs
Section titled “View audit logs”Logs are written to the S3 bucket approximately every 30 minutes. Each log batch will be saved into its own file as a JSON blob, keyed by the time of the log to be written. Only logs since the integration was created and enabled will be saved.
For more information about the log schema and captured events, see Understanding security - Audit logs.
Edit audit log integration details
Section titled “Edit audit log integration details”You can edit the details of the audit log integration in the Pinecone console:
- Go to Settings > Audit logs.
- Enter the new Role ARN or AWS Bucket.
- Click Update settings.
Disable audit logs
Section titled “Disable audit logs”If you disable audit logs, logs not yet saved will be lost. You can disable audit logs in the Pinecone console:
- Go to Settings > Audit logs.
- Click the toggle next to Audit logs are active.
- Click Confirm.
Remove audit log integration
Section titled “Remove audit log integration”If you remove the audit log integration, logs not yet saved will be lost. You can remove the audit log integration in the Pinecone console:
- Go to Settings > Audit logs.
- At the top of the page, click the ellipsis (...) menu > Remove integration.
- Click Remove integration.