Hi! I have a few questions about the audit logs: 1...
# prefect-cloud
c
Hi! I have a few questions about the audit logs: 1. is there any way for us to export the Organization-level audit log? 2. What the difference between the Organization-level audit log and the Event Feeds in the workspace? 3. The API doc shows an events endpoint (https://api.prefect.cloud/api/accounts/{account_id}/events). Is this for the activity you’d see in the Event Feed? Or can we also use it to get Org Audit Log activity?
w
Hi Chris - there is some overlap between the events in the audit log and the event feed, but generally speaking the event feeds will show things that happened within a workspace, and the audit log will show things that happened at the account level such as access changes. There’s no way to export audit logs via the UI, but you can hit the API endpoint you mentioned in point 3 to get what you need.
c
thanks @Will Raphaelson! So just to confirm https://api.prefect.cloud/api/accounts/{account_id}/events will give you all of the audit-log/organization/account level info and https://api.prefect.cloud/api/accounts/{account_id}/workspaces/{workspace_id}/events/ will give you the workspace scoped activity?
w
thats correct. the way in which there is some small overlap is that i believe we log deployment creation, technically a workspace level event, in the audit log. this was just based on many users asking for it.
gratitude thank you 1