View Audit Trail
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.
This topic shows you how to view Audit Trails for your Harness account.
Before you begin
Step: View an Audit Trail
You can view Audit Trail data at Account/Org/Project scope. This topic explains how to view Audit Trail data at the account scope.
The events in the scope of accounts will not be displayed if you are viewing the Audit Trail at the Org or Project scope.In Harness, go to Account Settings.
Click Audit Trail.
The Audit Trail page appears, displaying a record for each event that changed the setup of your Harness account, Modules, or Harness entities. By default, Harness shows the Audit logs for the previous 7 days.
It may take a few minutes for events to appear on the Audit Trail. Wait a minute and then refresh your browser if you don't notice an event right away.
For each event record, this view shows the:
- Date and time (Time).
- The user who made the change (User).
- Action by the user like create, update, delete.
- Harness entity affected (Resource).
- Organization corresponding to the affected entity.
- Project corresponding to the affected entity.
- Module corresponding to the affected entity.
- Event Summary with YAML difference.
From here, you have multiple options to Modify the Audit Trail View.
Exclude Audit Trail Records
You can view all the records or filter the displayed records by selecting one of the following:
- Exclude Login Events - For excluding login events like successful, or unsuccessful logins, 2FA, etc, from the displayed records.
- Exclude System Events - For excluding system events from the displayed records. These can be applied with or without your custom filters for Audit Trails.
Step: Set Date/Time Range
You can restrict the Audit Trail's displayed events by date and time.
Use the Date Picker to restrict events to a predefined date range, or to a custom date/time range:
Selecting Custom Date Range enables you to set arbitrary limits by date and time of day.
Option: Add a Filter
To add a Filter, perform the following steps:
- In Harness, in Account Settings click Audit Trail.
- In Account Audit Trail, click the filter icon.
- In the New Filter settings, select the filters to scope down the viewable audit events.
You can scope down the viewable audit events by adding Filters and selecting:
* Resource Type
- In Filter Name, enter a name for your filter.
- In Who can view and edit the filter? select Only Me or Everyone based on the visibility you want to set for this filter.
- Click Save. Your filter is now created.
Click Apply to view the Audit Events as per the filter you just created.
By default, the events of the last 7 days are returned for the filter. To view more results, you can select the date range accordingly.