---
name: cloud-logs-widget_dataprime
title: Creating a IBM Cloud Logs DataPrime creator widget
description: You can create the optimum visualization for your data based on your DataPrime query that can then be included in custom IBM&reg; Cloud Logs dashboards.
last-updated: 2026-05-19
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/cloud-logs?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Creating a IBM Cloud Logs DataPrime creator widget
{: #widget_dataprime}

You can create the optimum visualization for your data based on your DataPrime query that can then be included in custom IBM&reg; Cloud Logs dashboards.
{: shortdesc}

The [DataPrime language](https://cloud.ibm.com/docs/cloud-logs?group=dataprime&format=markdown) can be used to query your data and transform it through operations tailored to your specific needs. This includes calculation, extraction, and aggregation.

Use this widget to get suggestions on visualizations that are proposed based on your DataPrime query data results, and find the best way to present your data results.
{: note}


## Step 1: Enter name and description
{: #widget_dataprime_1}

Complete the following steps:

1. In a [custom dashboard](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-create_dashboards&format=markdown), click **Add Widget** ![Add Widget icon](/icons/Plus.svg "Add Widget") and drag and drop the **DataPrime creator** widget from your side bar.

2. Replace *DataPrime* with the **Name** for the widget.

3. Enter a description.

    Click **Action icon** ![Action icon](/images/action-three-dots-horizontal.png "Action icon"). Then, select **Add description**.


## Step 2: Configure the query to define the data set
{: #widget_dataprime_2}

Complete the following steps:

1. Click **Action icon** ![Action icon](/images/action-three-dots-horizontal.png "Action icon"). Then, select **Edit mode**.

2. For `Query 1`, complete the following steps:

    Select the **data type** `DataPrime`.

    Select the **source**. Valid options are: `Priority Insights` and `Analyze and Alert`.

    You can rename the query. Select the ![Action icon](/icons/action-menu-icon.svg "Action icon") and then click **Rename query**.

3. Enter the Dataprime query.

    For more information, see [Querying data by using DataPrime](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-query-data-dataprime&format=markdown).



## Step 3: Configure the widget
{: #widget_dataprime_3}

As you create your query, you can select from the visualization in the right-hand column. If your query results do not support a visualization, that visualization can't be selected. You can hover over visualizations that you can't select to get suggestions on how to change your query so the visualization can be used.
{: note}

Complete the following steps:

1. Click **Action icon** ![Action icon](/images/action-three-dots-horizontal.png "Action icon"). Then, select **Edit mode**.

2. Choose a visualization. Then, configure the widget for that visualization. For information on visualization customization, see the information for each visualization type:

   * [Data table](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-widget_datatable&format=markdown)

   * [Gauge](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-widget_gauge&format=markdown)

   * [Horizontal bar chart](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-widget_horizontalbar&format=markdown).

   * [Line chart](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-widget_linechart&format=markdown).

   * [Pie chart](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-widget_piechart&format=markdown)

   * [Vertical bar chart](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-widget_verticalbar&format=markdown)

   * Polystat


## Step 4: Save the widget
{: #widget_dataprime_5}

Complete the following steps:

1. [Optional] Set the widget's dashboard time if you want to use a time range that is different from the Dashboard selected one.

2. Click **Save** to save your widget.

3. [Optional] Add a custom action. For more information, see [Using actions to integrate with third-party services](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-actions&format=markdown).