# Audit logs

{% hint style="danger" %}
Audit logs are available on **Business** and **Enterprise** plans (plus the legacy **Team** plan).
{% endhint %}

As your team grows and more teammates start using your applications on a daily basis, it's important to keep track of changes made or errors received to help you troubleshoot. That's when audit logs come in handy.

{% hint style="success" %}
Audit logs are available to users with an **Admin** role.
{% endhint %}

You can access them by clicking on your workspace name and selecting **Audit logs** in the menu. Audit logs can be filtered by a certain time period, environment, app, or user. You can also select a specific **log level**:

* Log
* Warn
* Error

If you need to load the latest logs, you can just click the _Refresh logs_ button. You don't have to reload the page or set the filters.

The following events are tracked in the Audit logs:

{% tabs %}
{% tab title="User" %}
* Log in
* Sign up
* Log out
* Entered wrong password
* Entered wrong MFA
* Requested password reset
* Completed password reset
* Roles assigned
* Invited
* Removed
* Permission denied
{% endtab %}

{% tab title="Role" %}
* Created
* Updated
* Removed
* (System) updated
{% endtab %}

{% tab title="App" %}
* Create
* Open (failed attempts included)
* Deploy
* Publicity changed
* Page view
* Delete
{% endtab %}

{% tab title="Datasource" %}
* Connect
* Update
* Delete
* Request
{% endtab %}

{% tab title="Builder" %}
* Open
* Exit
* Version overwritten
* History snapshot restored
{% endtab %}

{% tab title="Action" %}
* Success
* Error
* Request performance metrics
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Automation" %}
* Error
* Success
* Created
* Updated
* Deleted
{% endtab %}

{% tab title="Database" %}
* Create table
* Delete table
* Duplicate table
* Update table
{% endtab %}

{% tab title="Admin" %}
* Viewed audit logs
* Password reset link generated
* Password reset requested
* MFA reset
* Reset failed login attempts
* MFA settings updated
{% endtab %}
{% endtabs %}

{% hint style="success" %}
In the **Enterprise** version, you have the ability to log request payloads. This feature enables you to track the data sent to databases and APIs. To activate this feature, set the `UI_BAKERY_AUDIT_LOGS_LOG_PAYLOAD` variable to `true`.
{% endhint %}

{% @arcade/embed flowId="x88jMjS8k8hpFLczbfjY" url="https://app.arcade.software/share/x88jMjS8k8hpFLczbfjY" %}
