doc/user/compliance/audit_events.md
{{< details >}}
{{< /details >}}
A security audit is an in-depth analysis and review of your infrastructure, which is used to display areas of concern and potentially hazardous practices. To assist with the audit process, GitLab provides audit events which allow you to track a variety of different actions within GitLab. GitLab can help owners and administrators respond to auditors by generating comprehensive reports. These audit reports vary in scope, depending on the needs.
For example, you can use audit events to track:
These events can be used to in an audit to assess risk, strengthen security measures, respond to incidents, and adhere to compliance. For a complete list the audit events GitLab provides, see audit event types. For example:
Audit events are retained indefinitely. Because there is no retention timeframe, all audit events are available.
To view specific types of audit events, you need a minimum role.
Users with the Auditor access level can see group and project events for all users.
Audit events can be viewed at the group, project, instance, and sign-in level. Each level has different audit events which it logs.
Successful sign-in events are the only audit events available at all tiers. To see successful sign-in events:
After upgrading to a paid tier, you can also see successful sign-in events on audit event pages.
{{< details >}}
{{< /details >}}
To view a group's audit events:
Group audit events can also be accessed using the group audit events API. Group audit event queries created_after and created_before parameters are limited to a maximum 30 day difference between the dates.
{{< details >}}
{{< /details >}}
Project audit events can also be accessed using the project audit events API. Project audit event queries created_after and created_before parameters are limited to a maximum 30 day difference between the dates.
{{< history >}}
{{< /history >}}
The time zone used for audit events depends on where you view them:
The audit events interface has limited search capabilities. Text based searching in audit event details is not supported. You can only filter audit events by:
Expanding audit event report usability is proposed in epic 418.
For advanced searching and analysis of audit events, consider streaming audit events to an external destination where you can perform comprehensive text searches and analysis.
If you don't see the event you want in any of the epics, you can either:
Instance administrators can administer audit events from the Admin area.