Skip to main content
Queries are the flexible layer beneath dashboards, audits, and investigations. Use ad-hoc SQL to test an idea, then save the query when it becomes part of a recurring workflow.

Create and run a query

  1. Go to Analyze → Queries and select new query.
  2. Open the schema browser and choose fields from the event, session, or evaluation data.
  3. Write SQL, add parameters when needed, and run the query.
  4. Save it with a clear name and description, then use add to dashboard when the result should be monitored.
The query editor combines the event schema, SQL, parameters, and a result preview so you can validate the question before saving it.The SQL query editor with a schema browser and live result grid.Saved queries then appear in the shared library, where teammates can rerun them or add their results to dashboards.The saved Queries library containing reusable built-in and custom queries.Use a clear name and description so the result remains understandable without reopening its SQL.

Common uses

  • Find sessions with repeated calls to the same tool.
  • Compare evaluation scores across models or environments.
  • Measure time between a human wait and resume.
  • Identify policy denials followed by a successful alternative.
  • Build a cohort for an audit.
Open Queries → Schema before writing against unfamiliar fields. Prefer explicit time and environment filters, and keep result limits during exploration.
A query can identify a suspicious pattern, but it does not establish the failure mode by itself. Open representative traces or run an audit before turning the result into a policy.