Testing & logs
Where: Settings › ⋮ › Run Testing, Tail Logs, Export logs
Who can use it: Admins and Owners
The ⋮ menu next to Run training shows on every Settings tab. It runs your saved queries as a test, shows the application log live, and exports logs. Tursio also writes an audit trail of admin actions, so you can follow the log, export it for support, and check who changed what without leaving Tursio.
Run Testing
After training, you can run a batch of saved queries against a connection. It works as a regression test: the report shows whether the model still gives the expected results.
- Open the ⋮ menu next to Run training and select Run Testing.
- Pick the Database in Test queries. It must be trained.
- Pick one or more Saved queries.
- Select Confirm. The connection's Testing status shows In Progress.
- Select Download Report in Testing status when testing finishes. A CSV of per-query results downloads.
(1) Page menu, (2) Run Testing.
Pick the database and the saved queries to test, then confirm.
Saved queries only
Only queries saved from the search page can be tested. If a query isn't listed, run it and save it first.
Tail Logs
- Open Settings and select ⋮ › Tail Logs. Application Logs opens with the latest 200 lines of the log.
- Type in Search logs to find a word or ID. Matches are highlighted, and the counter shows which match you're on. Use the arrows to move between matches.
- Copy or refresh. Use the buttons on the right to copy all loaded lines or fetch new lines now.
- Close the viewer with X when you're done.
(1) Search logs, (2) Copy all logs and Refresh. Log text is hidden in this example.
The viewer refreshes every 3 seconds. While you're at the bottom, it follows new lines. Scroll up to read, and it stops following. Select the Scroll to bottom button to jump back. Lines are colored by level, so errors and warnings stand out.
Export logs
- Open Settings and select ⋮ › Export logs.
- Pick a log type: All, Error, or Query.
- Pick a range: Last 7 days, Last month, or Custom date range.
- For a custom range, pick a start and an end date in the calendar and select Export.
(1) Page menu, (2) Export logs, (3) log type, (4) date range.
Your browser downloads the file, and Tursio shows a message such as Error logs exported successfully. If nothing was logged in the range, you see No logs found for the selected date range.
| Log type | File | What's in it |
|---|---|---|
| Error | error_logs_<start>_to_<end>.csv |
One row per error: time, user, dataset, source, error message, error type, and stack trace. |
| Query | query_logs_<start>_to_<end>.csv |
One row per question: time, user, dataset, question, generated SQL, and total time. |
| All | app_logs.zip |
The application log file, its older rotated copies, and the long-term log of queries, feedback, and audit entries. |
Dates are days in your browser's time zone. Last 7 days covers today and the 6 days before it. Last month covers today and the 30 days before it.
Audit log
Tursio records an audit entry each time someone makes an admin change. Each entry has who did it, the page, the action, what it changed, and the result: ok, failed, or denied. Attempts by people without permission are recorded as denied.
Tursio audits these actions:
- Settings: add, edit, or delete AI agents, the authorization agent, the redaction agent, MCP agents, and API agents and tokens; set the daily budget; add, edit, delete, or refresh a database; mirror, merge, or delete a dev database; add, edit, delete, or import query tables; save access rules; save Personalization; run training, global training, and testing.
- Users: add, delete, deactivate, or restore a user; create a license key; save access control.
- Onboarding: connect a database, add query tables, train, and deploy MCP.
- Microsoft Teams: a Teams user blocked by Teams access control.
To see audit entries:
- Open Settings and select ⋮ › Tail Logs.
- Use Search logs to find the audit log entries.
To keep audit entries for longer, export All. The zip includes the long-term log, which keeps audit entries after the application log rotates.
Tips and limits
- The page menu shows only to Admins and Owners. Users and Viewers don't see it.
- The viewer keeps the latest 1000 lines. Export All for older lines.
- All exports the log files as they are. The date range you pick doesn't filter them.
- The application log rotates at 5 MB and Tursio keeps the 5 most recent copies. Queries, feedback, query plans, and audit entries are also copied to the long-term log, so they survive rotation.
- Error exports cover errors still in the application log and its rotated copies. Older errors drop off as the log rotates. Query exports also include older questions, which Tursio keeps long term.
- Logs can hold user emails, dataset names, host names, and SQL. Share exports only with people who should see that data.
- Each MCP agent has its own log viewer on Settings › Agents. See Read MCP agent logs.
- Query history and feedback by database are on Insights.
- Logs stay on the Tursio server, in your environment. Tail and export read them from there, and nothing is sent outside your deployment.
- The Error export holds only errors Tursio records as errors. Warnings, such as a failed connection test, appear in the application log only. Export All to get them.