> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/database-devops/use-db-devops/governance-and-compliance/audit-trails.md).

# Audit Trails

With Audit Trail in Harness, you can view and track changes to your Harness resources within your Harness account.

The audit data retention period is 2 years. Harness reserves the right to delete audit data after 2 years. You can request a longer retention period by contacting Harness. For example, if you require audit data for legal discoveries, etc., contact Harness and we can help.

### Database DevOps events in audit trail <a href="#database-devops-events-in-audit-trail" id="database-devops-events-in-audit-trail"></a>

To access the Audit Trail, in your Harness project, navigate to **Account Settings > Audit Trail**. Follow the steps mentioned in [platform docs](/harness-platform/3.0/harness-platform-resources/governance/audit-trail.md#step-view-an-audit-trail) for more details.

The Account Audit Trail includes the following Database Devops events:

| Resources   | Audit Trail Events     |
| ----------- | ---------------------- |
| DB Schema   | Create, Update, Delete |
| DB Instance | Create, Update, Delete |

Each event in the Account Audit Trail list provides the following details:

1. **Action:** Describes the specific activity, such as logging in or deleting.
2. **Resource name and Type:** Identifies the resource type and its name where the event occurred. For example, monitored service, agent, or user.
3. **Organization and Project:** Name of the organization and the project in which the event occurred.

![Audit Trails](/files/tjrUWJFuua1IE5e0mcYG)

When you click on a resource name, you will be directed to the corresponding event page. For instance, clicking on a DB Schema resource will take you to the schema listing page, while clicking on a DB Instance resource will redirect you to the instance list page.

To see more information about a particular event, select the messaging icon next to it. The Event Summary page appears, displaying the following information:

1. Date and time when the event occurred.
2. Username associated with the event.
3. Details of the activity. For example, an update.
4. Type and name of the resource.

You can also see a snapshot of changes in YAML format by expanding YAML Difference.

![Database Devops Audit Trails](/files/mMAHIFnS1Jrf2bs9GKgo)

### Next steps <a href="#next-steps" id="next-steps"></a>

* Go to [Governance overview](/database-devops/use-db-devops/governance-and-compliance/using-approval-gates-with-harness-ui.md) to configure approval gates for database deployments.
* Go to [OPA policies](/database-devops/use-db-devops/governance-and-compliance/using-opa-with-database-devops.md) to enforce governance rules on your database changesets.
