Use Query Templates

Start with pre-built SQL query templates for common analysis patterns.

Dash0 SQL includes a library of built-in query templates organized by signal type. Each template is a ready-to-run query covering a common observability task.

SQL Templates menu with Logging, Tracing, and Web events categories and the Logging submenu expanded

Templates are grouped into three categories, each accessible from the Templates dropdown:

CategoryExample templates
LoggingDescribe table, Sample logs, Logs by severity, Logs with trace correlation, Logs per service, Error logs per service
TracingAvailable via the Tracing sub-menu
Web eventsAvailable via the Web events sub-menu

The Describe table template in the Logging submenu helps you explore the logs table's schema.

Load and Run a Template

  1. Click Templates in the top-right of the editor panel.
  2. Select a category, then choose a template.
  3. The template loads into the editor.
  4. Click Execute to run it as-is, or edit it before running.

Templates are read-only. Any edits you make apply only to your local copy in the editor.

Further Reading

Last updated: