Review query history in Logs
Select Logs in the Query Builder to see the last 100 queries run there, with who ran each one, how long it took, how many rows it returned and whether it succeeded.
Who can do this: Owner, Admin and Member. About roles
Every query run in the Query Builder is recorded automatically, including queries that fail or are cancelled. Use the log to find a query you ran earlier, check why one failed or see what teammates have been running.
Open the log
Step 1: Select Data in the left rail.
Step 2: Under Public Data, select any source, then Query Builder.
Step 3: Select Logs.
The tooltip reads "View query execution history".
Step 4: Review the Query Logs table.
What each entry shows
| Column | Meaning |
|---|---|
| User | Name and email of the person who ran the query |
| Query | The SQL text |
| Data source | The source the query ran against |
| Execution time | How long the query took |
| Row count | Number of rows returned |
| Status | Whether the query succeeded, failed or was cancelled |
| Error | The error message, if the query failed |
| Timestamp | When the query ran |
Reuse an earlier query
The Query Builder has no saved queries, so the log is the way to get back to recent work.
Step 1: Find the entry in Query Logs.
Step 2: Copy the SQL text from the query column.
Step 3: Return to the editor, paste it and select Execute.
Make sure you are in the same data source the query was written for.
Limits
- The log shows the most recent 100 executions. Older entries drop out of view.
- It covers queries run in the Query Builder. Questions asked in chat are not listed here. To see the SQL behind a chat answer, use Sources under the response.
- It records query executions and cancellations only. It is not a full audit trail of exports or other activity.
- There is no filter, search or export for the log.
Common questions
- Can teammates see my queries?
- The log lists the user name and email for each entry, so people in your organization who can open the Query Builder can see what was run and by whom.
- How far back does the log go?
- It shows the last 100 executions.
- Are cancelled queries logged?
- Yes. Executions and cancellations are both recorded automatically.