Last updated:
Export Views
Build views visually in Dash0, then export them as YAML for version control and deployment.
Once you have identified an existing view, or created a new one, do the following:
-
Navigate to the view panel of the Log Explorer, Trace Explorer, or Web Events Explorer.
-
Click on the ellipsis in the top right of the selected view.
-
Click Download and then YAML to download the view.
Export Format
The exported YAML follows the Dash0View format:
yaml
kind: Dash0View
metadata:
name: error-logs
spec:
type: logs
display:
name: Error Logs
description: All error-level logs from production services
groupBy:
- service.name
filter:
- key: severity
operator: equals
value: ERROR
- key: k8s.namespace.name
operator: equals
value: productionView Types
Views can be created for different telemetry types:
logs— Saved log queries and filtersspans— Saved trace queries and span filtersweb_events— Saved web event queries
Each view type has its own schema and supported filters appropriate for the telemetry type.
Further Reading
- Manage Views as Code — Deploy views using the Dash0 Operator for Kubernetes, the Dash0 Terraform Provider, or the Dash0 CLI.
- About Views — Understand how to create, share, and manage reusable telemetry views.
- Manage Dashboards as Code — Define and manage dashboards using infrastructure as code.
- Manage Check Rules as Code — Define and manage check rules using infrastructure as code.
- Manage Spam Filters as Code — Define and manage spam filters using infrastructure as code.
