
## View query logs

URL: https://docs.atlan.com/product/administration/logs/how-tos/view-query-logs

> Track all queries run in Atlan from the query editor, API, and sample data previews. Includes run status, user, connection, and timing. Query logs are retained for the lifetime of your Atlan instance.

Query logs record every query run in Atlan: queries from the Insights editor, API queries, and sample data preview requests. Use them to audit who queried what, investigate failures, and track usage patterns. Logs are retained for the lifetime of your Atlan instance.

## Prerequisites

- You are an **admin** in Atlan.

## View query logs

1. In your Atlan workspace, click **Settings** from the left menu.

 If you are using the **Old UI (Classic)**, from the left menu, click **Admin**.

2. Under _Logs_, click **Query logs**.

3. The page shows all queries run by your users. For each query you can see the query name, connection, execution details, user, and timestamp.

4. (Optional) Click the funnel icon to filter queries:

 - **Status**: filter by run status: Succeeded, Failed, or Aborted.
 - **Users**: filter by specific Atlan users.

5. (Optional) Use the search bar to find queries by keyword.

6. (Optional) The default date range is 30 days. Use the date filter to view the last 7 days, past 3 or 6 months, or a custom range.

7. Click any query row to open the _Query details_ sidebar. From there you can:

 - View the full query text, connection, database, schema, asset name, status, and run time.
 - Click the copy icon to copy the query.
 - Click the expand icon to view the full query in fullscreen.
 - Under _Query Source_, click **Copy ID** to copy the query ID.

## Need help?

If queries are missing from the log or the log is not loading, verify you have admin access and try refreshing. Contact [**Atlan Support**](https://docs.atlan.com/support/submit-request) if the issue persists.

## See also

- [View event logs](https://docs.atlan.com/llms/governance/access-control/view-event-logs/llms.txt): Track lineage and observability events from connectors.
- [Restrict auto user creation](https://docs.atlan.com/llms/governance/access-control/limit-sso-automatically-creating-users-when-they-log-in/llms.txt): Control who can access Atlan.

---
