Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update audit log docs #5401

Merged
merged 3 commits into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 45 additions & 44 deletions website/docs/docs/cloud/manage-access/audit-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ On the audit log page, you will see a list of various events and their associate

### Event details

Click the event card to see the details about the activity that triggered the event. This view provides important details, including when it happened and what type of event was triggered. For example, if someone changes the settings for a job, you can use the event details to see which job was changed (type of event: `v1.events.job_definition.Changed`), by whom (person who triggered the event: `actor`), and when (time it was triggered: `created_at_utc`). For types of events and their descriptions, see [Events in audit log](#events-in-audit-log).
Click the event card to see the details about the activity that triggered the event. This view provides important details, including when it happened and what type of event was triggered. For example, if someone changes the settings for a job, you can use the event details to see which job was changed (type of event: `job_definition.Changed`), by whom (person who triggered the event: `actor`), and when (time it was triggered: `created_at_utc`). For types of events and their descriptions, see [Events in audit log](#events-in-audit-log).

The event details provide the key factors of an event:

Expand All @@ -43,12 +43,13 @@ The event details provide the key factors of an event:
| actor_id | Unique ID of the actor |
| actor_ip | IP address of the actor |
| actor_name | Identifying name of the actor |
| created_at_utc | UTC timestamp on when the event occurred |
| actor_type | Whether the action was done by a user or an API request |
| created_at | UTC timestamp of when the event occurred |
| event_type | Unique key identifying the event |
| event_context | This key will be different for each event and will match the event_type. This data will include all the details about the object(s) that was changed. |
| id | Unique ID of the event |
| service | Service that carried out the action |
| source | Source of the event - dbt Cloud UI or API |
| v1.events.event_type | This key will be different for each event and will match the event_type. This data will include all the details about the object(s) that was changed. |

## Audit log events

Expand All @@ -58,102 +59,102 @@ The audit log supports various events for different objects in dbt Cloud. You wi

| Event Name | Event Type | Description |
| -------------------------- | ---------------------------------------- | ------------------------------------------------------ |
| Auth Provider Changed | v1.events.auth_provider.Changed | Authentication provider settings changed |
| Credential Login Failed | v1.events.auth.CredentialsLoginFailed | User login via username and password failed |
| Credential Login Succeeded | v1.events.auth.CredentialsLoginSucceeded | User successfully logged in with username and password |
| SSO Login Failed | v1.events.auth.SsoLoginFailed | User login via SSO failed |
| SSO Login Succeeded | v1.events.auth.SsoLoginSucceeded | User successfully logged in via SSO
| Auth Provider Changed | auth_provider.Changed | Authentication provider settings changed |
| Credential Login Failed | auth.CredentialsLoginFailed | User login via username and password failed |
| Credential Login Succeeded | auth.CredentialsLoginSucceeded | User successfully logged in with username and password |
| SSO Login Failed | auth.SsoLoginFailed | User login via SSO failed |
| SSO Login Succeeded | auth.SsoLoginSucceeded | User successfully logged in via SSO

### Environment

| Event Name | Event Type | Description |
| ------------------- | ----------------------------- | ------------------------------------ |
| Environment Added | v1.events.environment.Added | New environment successfully created |
| Environment Changed | v1.events.environment.Changed | Environment settings changed |
| Environment Removed | v1.events.environment.Removed | Environment successfully removed |
| Environment Added | environment.Added | New environment successfully created |
| Environment Changed | environment.Changed | Environment settings changed |
| Environment Removed | environment.Removed | Environment successfully removed |

### Jobs

| Event Name | Event Type | Description |
| ----------- | --------------------------------- | ---------------------------- |
| Job Added | v1.events.job_definition.Added | New Job successfully created |
| Job Changed | v1.events.job_definition.Changed | Job settings changed |
| Job Removed | v1.events.job_definition.Removed | Job definition removed |
| Job Added | job_definition.Added | New Job successfully created |
| Job Changed | job_definition.Changed | Job settings changed |
| Job Removed | job_definition.Removed | Job definition removed |

### Service Token

| Event Name | Event Type | Description |
| --------------------- | -------------------------------- | ------------------------------------------ |
| Service Token Created | v1.events.service_token.Created | New Service Token was successfully created |
| Service Token Revoked | v1.events.service_token.Revoked | Service Token was revoked |
| Service Token Created | service_token.Created | New Service Token was successfully created |
| Service Token Revoked | service_token.Revoked | Service Token was revoked |

### Group

| Event Name | Event Type | Description |
| ------------- | ----------------------------- | ------------------------------ |
| Group Added | v1.events.user_group.Added | New Group successfully created |
| Group Changed | v1.events.user_group.Changed | Group settings changed |
| Group Removed | v1.events.user_group.Changed | Group successfully removed |
| Group Added | user_group.Added | New Group successfully created |
| Group Changed | user_group.Changed | Group settings changed |
| Group Removed | user_group.Changed | Group successfully removed |

### User

| Event Name | Event Type | Description |
| ---------------------------- | ----------------------------------- | ----------------------------------------------- |
| Invite Added | v1.events.invite.Added | User invitation added and sent to the user |
| Invite Redeemed | v1.events.invite.Redeemed | User redeemed invitation |
| User Added to Account | v1.events.account.UserAdded | New user added to the account |
| User Added to Group | v1.events.user_group_user.Added | An existing user is added to a group |
| User Removed from Account | v1.events.account.UserRemoved | User removed from the account
| User Removed from Group | v1.events.user_group_user.Removed | An existing user is removed from a group |
| Verification Email Confirmed | v1.events.user.jit.email.Confirmed | Email verification confirmed by user |
| Verification Email Sent | v1.events.user.jit.email.Sent | Email verification sent to user created via JIT |
| Invite Added | invite.Added | User invitation added and sent to the user |
| Invite Redeemed | invite.Redeemed | User redeemed invitation |
| User Added to Account | account.UserAdded | New user added to the account |
| User Added to Group | user_group_user.Added | An existing user is added to a group |
| User Removed from Account | account.UserRemoved | User removed from the account
| User Removed from Group | user_group_user.Removed | An existing user is removed from a group |
| Verification Email Confirmed | user.jit.email.Confirmed | Email verification confirmed by user |
| Verification Email Sent | user.jit.email.Sent | Email verification sent to user created via JIT |

### Project

| Event Name | Event Type | Description |
| --------------- | ------------------------- | ------------------------ |
| Project Added | v1.events.project.Added | New project added |
| Project Changed | v1.events.project.Changed | Project settings changed |
| Project Removed | v1.events.project.Removed | Project is removed |
| Project Added | project.Added | New project added |
| Project Changed | project.Changed | Project settings changed |
| Project Removed | project.Removed | Project is removed |

### Permissions

| Event Name | Event Type | Description |
| ----------------------- | ---------------------------- | ------------------------------ |
| User Permission Added | v1.events.permission.Added | New user permissions are added |
| User Permission Removed | v1.events.permission.Removed | User permissions are removed |
| User Permission Added | permission.Added | New user permissions are added |
| User Permission Removed | permission.Removed | User permissions are removed |

### License

| Event Name | Event Type | Description |
| ----------------------- | ------------------------------ | ----------------------------------------- |
| License Mapping Added | v1.events.license\_map.Added | New user license mapping is added |
| License Mapping Changed | v1.events.license\_map.Changed | User license mapping settings are changed |
| License Mapping Removed | v1.events.license\_map.Removed | User license mapping is removed |
| License Mapping Added | license\_map.Added | New user license mapping is added |
| License Mapping Changed | license\_map.Changed | User license mapping settings are changed |
| License Mapping Removed | license\_map.Removed | User license mapping is removed |

### Connection

| Event Name | Event Type | Description |
| ------------------ | ---------------------------- | ------------------------------------------ |
| Connection Added | v1.events.connection.Added | New Data Warehouse connection added |
| Connection Changed | v1.events.connection.Changed | Data Warehouse Connection settings changed |
| Connection Removed | v1.events.connection.Removed | Data Warehouse connection removed |
| Connection Added | connection.Added | New Data Warehouse connection added |
| Connection Changed | connection.Changed | Data Warehouse Connection settings changed |
| Connection Removed | connection.Removed | Data Warehouse connection removed |

### Repository

| Event Name | Event Type | Description |
| ------------------ | ---------------------------- | --------------------------- |
| Repository Added | v1.events.repository.Added | New repository added |
| Repository Changed | v1.events.repository.Changed | Repository settings changed |
| Repository Removed | v1.events.repository.Removed | Repository removed |
| Repository Added | repository.Added | New repository added |
| Repository Changed | repository.Changed | Repository settings changed |
| Repository Removed | repository.Removed | Repository removed |

### Credentials

| Event Name | Event Type | Description |
| -------------------------------- | ----------------------------- | -------------------------------- |
| Credentials Added to Project | v1.events.credentials.Added | Project credentials added |
| Credentials Changed in Project | v1.events.credentials.Changed | Credentials changed in project |
| Credentials Removed from Project | v1.events.credentials.Removed | Credentials removed from project |
| Credentials Added to Project | credentials.Added | Project credentials added |
| Credentials Changed in Project | credentials.Changed | Credentials changed in project |
| Credentials Removed from Project | credentials.Removed | Credentials removed from project |

## Searching the audit log

Expand Down
Loading