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.
Templates are grouped into three categories, each accessible from the Templates dropdown:
| Category | Example templates |
|---|---|
| Logging | Describe table, Sample logs, Logs by severity, Logs with trace correlation, Logs per service, Error logs per service |
| Tracing | Available via the Tracing sub-menu |
| Web events | Available 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
- Click Templates in the top-right of the editor panel.
- Select a category, then choose a template.
- The template loads into the editor.
- 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
- Write SQL Queriesthe editor, time window behavior, and keyboard shortcuts.
- Use Supported Functionsexplore the available functionality for querying SQL in Dash0.
- Manage Saved Queriesrecent query history and saved views.
- Explore Your Schemadiscover available tables, columns, and supported functions.
- Troubleshoot SQL Queriescommon issues and fixes.
Last updated:
