# Audit logs

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>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.uibakery.io/concepts/workspace-management/audit-logs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
