Data
err:unkey:data:audit_log_not_found
The requested audit log was not found
Example
What Happened?
This error occurs when you’re trying to retrieve or operate on a specific audit log entry that doesn’t exist in the Unkey system. Audit logs record important actions and events that occur within your workspace.
Common scenarios that trigger this error:
- Using an incorrect audit log ID
- Requesting an audit log entry that has been deleted or expired
- Trying to access audit logs from a different workspace
- Typographical errors in audit log identifiers
Here’s an example of a request that would trigger this error:
How To Fix
Verify that you’re using the correct audit log ID and that the log entry still exists in your workspace:
- Check the audit log ID in your request for typos or formatting errors
- Use the list audit logs endpoint to find valid log IDs
- Verify you’re working in the correct workspace
- Consider that audit logs might have a retention period after which they’re automatically deleted
Here’s how to list recent audit logs in your workspace:
Common Mistakes
- Expired logs: Trying to access audit logs beyond the retention period
- Copy-paste errors: Using incorrect log IDs from documentation examples
- Workspace boundaries: Attempting to access logs from another workspace
- Permission issues: Trying to access logs you don’t have permission to view
Related Errors
- err:unkey:authorization:insufficient_permissions - When you don’t have permission to access audit logs
- err:unkey:data:workspace_not_found - When the requested workspace doesn’t exist