> ## Documentation Index
> Fetch the complete documentation index at: https://docs-xcor.paloaltonetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create dashboards from queries

> Learn how to create dashboards that include telemetry data queries in Palo Alto Networks Cortex XCOR.

Palo Alto Networks Cortex XCOR supports creating dashboards from queries for
certain telemetry data types. You can add queries to a new dashboard or an existing
dashboard to visualize the query results.

Complete the following steps to create a [dashboard](https://docs-xcor.paloaltonetworks.com/observe/dashboards) with a
query:

1. In the navigation menu select one of the Explorers that support adding queries to
   a dashboard:

   * **Logs**: ** Explorers > Logs
     Explorer**.
   * **Metrics**: ** Explorers > Metrics
     Explorer**.

2. Construct a query that returns the data you want to view:

   * **Logs**: Construct a query for [log data](https://docs-xcor.paloaltonetworks.com/investigate/querying/query-logs).
   * **Metrics**: Construct a query for [metric data](https://docs-xcor.paloaltonetworks.com/investigate/querying/metrics/explorer.md#enter-and-run-a-query).
     Use the [Query Builder](https://docs-xcor.paloaltonetworks.com/investigate/querying/metrics/builder.md) to help build and
     optimize your query.

3. In the main navigation bar, click ** Add to Dashboard**.

4. In the **Add to dashboard** dialog, enter a name for your query. The query you
   defined is entered in the **Name** field by default.

5. Click **Select dashboard** to add the panel to an existing dashboard, or click
   **create a new dashboard** to create a new dashboard containing the panel.

   Cortex XCOR previews the addition of the panel to the dashboard.

   * For an existing dashboard, click the **Panel group** dropdown to add the panel
     to an existing panel group, or select **New Panel Group** from the dropdown to
     add it to a new group.
   * For a new dashboard, click the **Dashboard name** field to name the dashboard,
     and click the **Owner** dropdown to choose which Collection owns the dashboard.

6. Click **Add to dashboard** to add the panel to your dashboard.

Cortex XCOR creates the dashboard with the query you defined or adds the
query to the specified dashboard. You can
[change the panel's type](https://docs-xcor.paloaltonetworks.com/observe/dashboards/panels#change-a-panels-type) if you
want the query to display as a different visualization.


## Related topics

- [Customize panel queries with dashboard variables](https://docs-xcor.paloaltonetworks.com/observe/dashboards/customization/dashboard-variables.md)
- [Create PromQL queries with Query Builder](https://docs-xcor.paloaltonetworks.com/investigate/querying/metrics/query-builder.md)
- [Create dashboards for service health](https://docs-xcor.paloaltonetworks.com/overview/guides/create-dashboards.md)
- [Dashboard query interval and resolution](https://docs-xcor.paloaltonetworks.com/observe/dashboards/customization/intervals.md)
- [Visualize data using dashboards](https://docs-xcor.paloaltonetworks.com/observe/dashboards.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.