# Create a visualization

Supported in:

To add a chart, or other visualization, to a dashboard, use a visualization tile.
The visualization tile displays data from the associated LookML view, called an
*Explore*, that you select when creating the tile. This document describes the following:

- How to create charts and other visualizations using the visualization tile.
- How to create data visualizations that satisfy specific use cases.

## Overview of the process

At a high level, you perform the following actions to create a visualization in a dashboard:

1. Add a visualization tile to the dashboard.
2. Select the Explore. An [Explore](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#data-model) is a starting point for the new tile and represents a specific data model.
3. Select data fields for the visualization. [Predefined fields](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#fields) are grouped into one of the following types:
   - **Dimensions**: attributes of the data that describe data. Example: The square footage and building material of a museum are different dimensions within a museum dataset.
   - **Measures**: numeric representation of one or more dimensions, or unique attribute of the data, such as count or average.
   - **Filter-only fields**: predefined fields that can be used only in a filter.
4. Optionally, create and add [custom fields](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#custom-fields) to the tile that support a specific use case.
5. Configure the tile by selecting the following:
   - [**Visualization**](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#chart): displays the fields you selected visually. For example, a line chart can show trends over time.
   - [**Filters**](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#filters): restrict the visualization to show only data of interest. Any field in an Explore can be used to create a filter.
6. Run the visualization to preview the results.
7. Save the visualization tile.

The following sections of this document provide more detailed information about
configuring each component in a visualization tile.

### Example: Create a data table

The following steps give more detail about how to create a data table using a
visualization tile, and show the configuration options in the **Edit Tile** dialog.

1. From **Personal Dashboards** or **Shared Dashboards** , select a dashboard, and then click **Dashboard actions \> Edit dashboard**.
2. Click **Add \> Visualization**.
3. Select an [Explore](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#data-model) data model. The **Edit Tile** dialog appears.
4. Enter a unique tile name.
5. From **All Fields** , select the [predefined fields](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#fields): **Dimensions** and **Measures** . You typically need to choose at least two fields to create a visualization. The fields you select appear in the **Data** section.
6. Optionally, create and add any [custom fields](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#custom-fields) needed for the visualization. They will appear in the **Data** section.
7. In the **Visualization** section, select **Table** as the [visualization type](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#chart). The visualization displays the selected data fields in the table.
8. In the **Filters** section, define [filters](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#filters) that restrict the visualization to show only the data of interest. Any field in an Explore can be used to create a filter.
9. In the **Data** section, do the following:
   - Click **Explore field header** to sort the fields in ascending or descending order.
   - Set **Row Limit** to limit the number of rows that appear in the visualization.
10. Click **Run** to preview the visualization using Google Security Operations SIEM data.
11. Click **Save** . The **Dashboard** displays with the newly added tile.

The following image identifies the location in the **Edit Tile** dialog
where you perform these steps.

![Edit tile dialog with configuration](https://docs.cloud.google.com/static/chronicle/images/reports/explore-dialog.png)

**Edit tile dialog with configuration**

## Choose an Explore data model

Google Security Operations SIEM provides multiple data models that you can use to build
a dashboard. Each data model is a Looker Explore that defines a subset of UDM fields.

An Explore is a starting point when creating a new visualization tile. It is designed
to explore a particular data model. You select one data model Explore for each visualization tile.

Google Security Operations SIEM provides the following data model Explores:

- Entity Graph
- IOC Matches
- Ingestion Metric with Ingestion Stats
- Ingestion Metrics
- Ingestion Stats
- Rule Detections
- Rulesets with Detections
- UDM Events
- UDM Events Aggregates

You can optionally create custom fields to be used with only the tile where they are created.

## Select fields for the chart visualization

After you select the Explore for a tile, the predefined UDM fields appear under the **All Fields** tab in the **Explore** dialog.

After you select fields from the **All Fields** tab, they appear in both the
**In Use** tab and the **Data** section. The following subsections describe
the types of fields you can choose to create a chart visualization.

### Predefined fields

Each Explore includes a different set of predefined UDM fields. The predefined
fields available in the tile are specific to the data model you select from the
[Choose an Explore](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#data-model) dialog.

Predefined fields are grouped into the following types:

- Dimensions
- Measures
- Filter-only fields

The icons next to each field show more information and indicate available options,
such as **Filter by field** , **Pivot data** , **Aggregate** , **Bin** , or **Group** . Click the **Info** icon to view help text for the field. These icons are visible when you hold
the pointer over a field. To learn more, see [Field-specific information and actions](https://docs.cloud.google.com/looker/docs/creating-and-editing-explores.md.txt#field-specific_information_and_actions).

You can use predefined fields to create custom dimensions, create custom measures,
create table calculations, and apply filters to the tile.

An Explore may include deprecated fields that are no longer supported.
Deprecated fields are identified by a field name followed by **\[D\]**.

Certain data models include predefined **Filter-Only fields** that can only be
used in a filter. The filter-only fields in a data model may include one or more
of the following field types:

- [Individual UDM fields](https://docs.cloud.google.com/chronicle/docs/reference/udm-field-list.md.txt)
- [Grouped UDM fields](https://docs.cloud.google.com/chronicle/docs/investigation/udm-search.md.txt#types_of_grouped_udm_fields)

Some Explore data models, such as **UDM Events** , include more granular measures for
fields that store a timestamp (for example, `principal.artifact.first_seen_time`
and `security_result.about.file.last_modification_time`).

These measures separate the timestamp into more granular increments, such as hour,
day, week, or year. The model also provides a minimum and maximum measure for each
increment. This lets you create more detailed charts that aggregate event counts
based on time and time increments.

### Custom fields

Custom fields are fields that you create using the predefined fields available in
the data model for the tile. The custom fields can be used in that tile only.

You can create any of the following types of custom fields:

- [Custom dimensions](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#custom-dimension)
- [Custom measures](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#custom-measure)
- [Custom table expressions](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#custom-table-calculation)

To access the custom fields menu in the **Edit Tile** dialog, click
**+ Add** under the **All Fields** \> **Custom Fields** section.
The following image shows the menu location.

![access custom fields menu](https://docs.cloud.google.com/static/chronicle/images/reports/custom-fields-menu.png)

#### Create a custom dimension

Custom dimensions are unique attributes that help you to describe data. For example,
the concatenation of a user's first name and last name may be custom dimension.

Complete the following steps to add a custom dimensions to a tile:

1. Open an existing [dashboard to edit](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#edit-dashboard) or [create a new dashboard](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#new).
2. Open a [tile to edit](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#edit-tile).
3. In the **Custom Fields** section of the **Edit Tile** dialog, click **+ Add \> Custom Dimension** . The **Create custom dimension** dialog appears.
4. In the **Create custom dimension** dialog, do the following:
   1. In the **Expression** field, enter a [Looker expression](https://docs.cloud.google.com/looker/docs/creating-looker-expressions.md.txt) that defines the value using any [Looker function and operator](https://docs.cloud.google.com/looker/docs/functions-and-operators.md.txt). The Looker expression editor [suggests](https://docs.cloud.google.com/looker/docs/creating-looker-expressions.md.txt#seeing_all_suggestions) field names and displays syntax help for any functions you use. The following are example expressions:
      - Concatenates IOC feed name and IOC value. You can use this example only in the **IOC Matches** Explore. `concat(
        ${ioc_matches.feed_name},
        " | ",
        ${ioc_matches.ioc_value}
        )`
      - Returns the first value that is not empty. The order is hostname, and then IP address. If neither of those exist, it displays `_`. You can use this example only in the **Entity Graph** Explore. `coalesce(${entity_graph.entity__asset__hostname},
        ${entity_graph__entity__asset__ip.entity_graph__entity__asset__ip},"-")`
   2. Select a format from the **Format** menu.
   3. Specify the custom dimension name in the **Name** field. This value will appear in the **All Fields** tab and in the **Data** table.
   4. Select **+ Add description** to add a description in the **Description** field.
   5. Click **Save**.

The **All Fields** tab displays the field in the **Custom Fields** section.
As with other fields, you can select a custom dimension to add or remove it from the tile.

#### Create custom measures

Measures are a numeric representation of one or more dimensions (or unique attributes
of the data), such as a *count* or *average*. Measures let you calculate key
performance indicators (KPIs) and help users analyze data using different aggregated attributes.

Custom measures allow you to define a specific numeric calculation for a field.
Depending on the field type, only certain types of measures are available.

Complete the following steps to add a custom measure to a tile:

1. Open an existing [dashboard to edit](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#edit-dashboard) or [create a new dashboard](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#new).
2. Open a [tile to edit](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#edit-tile).
3. In the **Custom Fields** section of the **Edit Tile** dialog, click **+ Add** , and select **Custom Measure** . The **Create custom measure** dialog appears.
4. In the **Create custom measure** dialog, do the following:

   1. Select a field from the **Field to measure** menu.
   2. Select a measure type from the **Measure type** menu.
   3. Specify a name in the **Name** field. The name appears in the field picker and in the data table.
   4. In the **Filters** tab, do the following:

      1. To add a filter condition, select a field from the **Filter name** menu. You can add or remove filter conditions using the and **Filter value** buttons, respectively.
      2. You can select the arrow next to **Custom filter** to create a [custom filter](https://docs.cloud.google.com/looker/docs/filtering-and-limiting.md.txt#custom_filters) expression using any [Looker function and operator](https://docs.cloud.google.com/looker/docs/functions-and-operators.md.txt) that can be used in custom filters. The Looker expression editor [suggests](https://docs.cloud.google.com/looker/docs/creating-looker-expressions.md.txt#seeing_all_suggestions) field names and displays syntax help for any functions you use. The following are example expressions:
         - Measures IOC feed logs for a unique values. You can use this example only in the **IOC Matches** Explore. `${ioc_matches.feed_log_type} != ""`
         - Measures IOC day bucket seconds: `${ioc_matches.day_bucket_seconds}`
   5. In the **Field details** tab, do the following:

      - Select a format from the **Format** menu.
      - Optionally, add a description of up to 255 characters in the **Description** field to give other users additional details about the custom field.
   6. Click **Save**.

The **All Fields** tab displays the field in the **Custom Fields** section.
As with other fields, you can select the custom field to add to the tile.

#### Create a custom table calculation

Table calculations enable you to create ad hoc metrics. They are comparable
to formulas that are found in spreadsheet tools, such as Google Sheets.

Google SecOps gives you the option to add custom calculations to a tile.
These custom table calculations are built using [Looker expressions](https://docs.cloud.google.com/looker/docs/creating-looker-expressions.md.txt).
You can only create table calculations using fields in the [Explore](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#data-model).

Complete the following steps to create a table calculation and add it to a tile:

1. Open an existing [dashboard to edit](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#edit-dashboard) or [create a new dashboard](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#new).
2. Open a [tile to edit](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#edit-tile).
3. In the **Custom Fields** section of the **Edit Tile** dialog, click **+ Add \> Table Calculation** . The **Create table calculation** dialog appears.
4. In the **Create table calculation** dialog, do the following:
   1. Select a [calculation type](https://docs.cloud.google.com/looker/docs/table-calculations.md.txt#types_of_quick_calculations) from the **Calculation** menu. The options for a **Custom expression** display by default.
   2. Enter a [Looker expression](https://docs.cloud.google.com/looker/docs/creating-looker-expressions.md.txt) in the field to define a calculation. The following are example table calculations expressions:
      - The following expression uses the `diff hours` function to show the difference between two timestamps. You can use this example only in the **Rule Detections** Explore. `diff_hours(
        ${rule_detections.detection__detection_timestamp_date},
        ${rule_detections.detection__commit_timestamp_date}
        )`
      - The following expression counts the IOC values. You can use this example only in the **IOC Matches** Explore. `count(${ioc_matches.ioc_value})`
   3. Select a format from the **Format** menu.
   4. Enter a calculation name in the **Name** field.
   5. Select **+ Add description** to add an optional description to give other users more context about the table calculation.
   6. Click **Save**.

The **All Fields** tab displays the field in the **Custom Fields** section. As with
other fields, you can select the custom calculation field to add or remove it from the tile.

## Select the visualization chart type

Visualizations display the data visually to help you spot anomalies and trends.
The Google Security Operations SIEM dashboard is based on Looker technology,
including Looker visualizations.

The following are the visualization types that you can use in Google Security Operations SIEM
dashboards:

- [Column chart options](https://docs.cloud.google.com/looker/docs/column-options.md.txt)
- [Bar chart options](https://docs.cloud.google.com/looker/docs/bar-options.md.txt)
- [Scatter plot chart options](https://docs.cloud.google.com/looker/docs/scatter-options.md.txt)
- [Line chart options](https://docs.cloud.google.com/looker/docs/line-options.md.txt)
- [Area chart options](https://docs.cloud.google.com/looker/docs/area-options.md.txt)
- [Boxplot chart options](https://docs.cloud.google.com/looker/docs/boxplot-options.md.txt)
- [Waterfall chart options](https://docs.cloud.google.com/looker/docs/waterfall-options.md.txt)
- [Pie chart options](https://docs.cloud.google.com/looker/docs/pie-options.md.txt)
- [Donut multiples chart options](https://docs.cloud.google.com/looker/docs/donut-multiples-options.md.txt)
- [Funnel chart options](https://docs.cloud.google.com/looker/docs/funnel-options.md.txt)
- [Timeline chart options](https://docs.cloud.google.com/looker/docs/timeline-options.md.txt)
- [Single value chart options](https://docs.cloud.google.com/looker/docs/single-value-options.md.txt)
- [Single Record chart options](https://docs.cloud.google.com/looker/docs/single-record-options.md.txt)
- [Table chart options](https://docs.cloud.google.com/looker/docs/table-options.md.txt)
- [Table (legacy) chart options](https://docs.cloud.google.com/looker/docs/legacy-table-options.md.txt)
- [Word cloud chart options](https://docs.cloud.google.com/looker/docs/word-cloud-options.md.txt)
- [Google Maps chart options](https://docs.cloud.google.com/looker/docs/google-map-options.md.txt)
- [Map chart options](https://docs.cloud.google.com/looker/docs/map-options.md.txt)
- [Static Map (Regions) chart options](https://docs.cloud.google.com/looker/docs/map-regions-options.md.txt)
- [Static Map (Points) chart options](https://docs.cloud.google.com/looker/docs/map-points-options.md.txt)

Using the **Run** button in the **Edit Tile** dialog, you can display a preview
using the selected fields and visualization type. Refresh preview after adjusting
and modifying the tile configuration by clicking **Run**.

## Select fields to use as filters

Filters let you restrict the data displayed in the visualization to only show items
of interest. You create filters using fields in the Explore data model.

The Google Security Operations SIEM dashboard is based on Looker technology,
including Looker filters. You can create the following types of filters
in a tile:

- [Standard filters](https://docs.cloud.google.com/looker/docs/filtering-and-limiting.md.txt#standard_filters) create filters using predefined or custom fields. Define these filters using the **Filters** section of the **Edit Tile** dialog.
- [Custom filters](https://docs.cloud.google.com/looker/docs/filtering-and-limiting.md.txt#custom-filters) with Looker expressions: specify detailed business logic, combine both `AND` and `OR` logic, or use Looker functions. Click the **Custom Expression** button in the **Filters** section of the **Edit Tile** dialog.

Certain predefined fields are available for use in a filter. These fields appear
under the **All Fields** section only when the data model includes predefined [Filter-only fields](https://docs.cloud.google.com/chronicle/docs/reports/create-chart-visualization.md.txt#fields).

Complete the following steps to add a filter to a tile:

1. Open an existing [dashboard to edit](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#edit-dashboard) or [create a new dashboard](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#new).
2. Open a [tile to edit](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#edit-tile).
3. Under the **All Fields** section, select the fields you want to use as filters by clicking **Filter by field** that is next to each field name.
4. In the **Filters** section, you can either:

   - Define the filter conditions for each field listed in the **Filters** section.
   - Click **Custom Expression** and add values in the **Custom Filter** field.
5. Click **Run** to update the visualization preview.

## Examples that solve specific use cases

The following sections describe how to create visualizations that support specific
use cases.

### Create a tile that displays IOC types

Follow these steps to add a tile to dashboard to monitor IOC types:

1. Open an existing [dashboard to edit](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#edit-dashboard) or [create a new dashboard](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#new).
2. Click **Add \> Visualization**.
3. From the **Choose an Explore** dialog, select **IOC Matches**.
4. Enter a tile name.
5. Select the following **Dimensions** : **Ioc Type** and **Event Timestamp Date** \> **Date**.
6. Select the following **Measures** : **Count**.
7. In the **In Use** tab, hold the pointer over the **Date Event Timestamp Date** field, and then select **Filter by field** . This adds the field to the **Filters** section.
8. In the **Filters** section, apply the filter conditions that you want to use.
9. In the **Visualization** section, select the **Column** icon.
10. In the **Data** section, do the following:

    - Click the **Ioc Matches Count** header to sort the fields in ascending or descending order.
    - Set the **Row Limit** to a value, such as 50, to limit the rows that appear in the visualization.
11. After you configure the tile, click **Run** to preview the visualization
    using Google SecOps data. The preview is displayed with the
    **IOC types** by IOC matches against the event timestamp date.

    The following image shows an example of the chart created using these steps.

    ![IOC match results based on the selected fields.](https://docs.cloud.google.com/static/chronicle/images/reports/ioc-match1.png)
12. Click **Save**.

The **Dashboards** page displays with the newly added tile.

### Create a tile with enumerated fields

The Google Security Operations SIEM Unified Data Model includes multiple enumerated fields with
values stored as both text and numbers. The values associated with each enum field can
be found in the [UDM field list](https://docs.cloud.google.com/chronicle/docs/reference/udm-field-list.md.txt).

In some Explores, the enum field text value and numeric value are stored in
separate fields. For example, with the field [`metadata.event_type`](https://docs.cloud.google.com/chronicle/docs/reference/udm-field-list.md.txt#metadataeventtype)
one of the enum values is `FILE_CREATION` and the related number is 14001.

In an Explore, the following fields store the `metadata.event_type` values:

- `metadata.event_type` stores the numeric value, 14001.
- `metadata.event_type_enum_name` stores the text value, `FILE_CREATION`.

When adding an enumerated field to a tile, add the field that stores the text value instead of
the number.

Use the following instructions to add a tile with enumerated fields to
a dashboard:

1. Open an existing [dashboard to edit](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#edit-dashboard) or [create a new dashboard](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#new).
2. Click **Add \> Visualization**.
3. From the **Choose an Explore** dialog, select **UDM Events**.
4. Enter a tile name.
5. In **Find a Field** , search for a UDM field, such as `metadata.event_type`.
6. From **Dimensions** , select **metadata.event_type_enum_name** and **security_result.action_enum_name**.
7. From **Measures** , select **Count**.
8. In the **In Use** tab, hold the pointer over the **security_result.action_enum_name** field, and then select **Filter by field** . This displays the filters of the selected field in the **Filters** section.
9. In the **Filters** section, select **is equal to** , and then select **BLOCK** as values.
10. In the **Visualization** section, select the **Table** icon.
11. In the **Data** section, do the following:

    - Click the **UDM Count** header to sort the fields in ascending or descending order.
    - Set the **Row Limit** to a value (such as 50) to limit the rows that appear in the visualization.
12. Click **Run** to preview the visualization using Google SecOps data.
    The preview is displayed showing the **metadata.event_type** values by count
    where the **security_result.action_enum** name is **BLOCK**.

    The following image shows an example of the chart created using these steps.

    ![Enumerated results based on the selected fields.](https://docs.cloud.google.com/static/chronicle/images/reports/enumerated.png)
13. Click **Save**.

The **Dashboards** page is displayed with the newly added tile.

### Use a pivot in a data table

You can use a **Pivot** to display event counts across multiple dimensions.

The following tile displays the event counts across values in the
`metadata.event_type_enum_name` and `security_result_action_enum_name` fields.
In this example, a pivot is applied to the `security_result_action_enum_name` field.

Complete the following steps create this data table containing a pivot:

1. Open an existing [dashboard to edit](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#edit-dashboard) or [create a new dashboard](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#new).
2. Click **Add \> Visualization**.
3. From the **Choose an Explore** dialog, select **UDM Events**.
4. Enter a tile name.
5. Select the **Dimension** fields `metadata.event_type_enum_name` and `security_result_action_enum_name`.
6. Select the **Measure** field `Count`.
7. In the **Filter** section, create the following filters:
   - `UDM metadata_event_timestamp` **is in the last 2 hours**.
   - `UDM security_result.action_enum_name` **is not null**.
8. Under the **In Use** tab, check that the following fields are displayed. If any are missing, repeat the previous steps to configure the tile.
   - `metadata.event_timestamp`
   - `metadata.event_type_enum_name` - `metadata`
   - `security_result_action_enum_name` - `security_result`
   - `Count`
9. In the **Data** section, click the icon in the `security_result.action_enum_name` column heading, and then select **Pivot**.
10. A new row appears in the grid under **Data**.
11. In the **Visualization** section, select the **Table** icon.
12. Click **Run** to display a preview of the visualization.

The following image shows these configuration options in the **Edit Tile** dialog.

![Configuration options for pivot in a data table](https://docs.cloud.google.com/static/chronicle/images/reports/pivot-enum-example-edit-sml.png)

**Configuration options for pivot in a data table**

### Use a pivot with date fields to create a time chart

You can use a pivot with date fields to create a time chart. The following
tile displays hourly event counts for values in the `security_result_action_enum_name` fields.

In this example, a pivot is applied to the `security_result_action_enum_name` field.
The filter limits the range of dates and filters out data where the `security_result_action_enum_name`
value is `null`. It uses the predefined `metadata.event_timestamp Hour` date field
that partitions data by hour.

To use a pivot with data fields, do the following:

1. Open an existing [dashboard to edit](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#edit-dashboard) or [create a new dashboard](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#new).
2. Click **Add \> Visualization**.
3. From the **Choose an Explore** dialog, select **UDM Events**.
4. Enter a tile name.
5. Select the **Dimension** fields: `metadata.event_timestamp Hour` and `security_result_action_enum_name`.
6. Select the **Measure** field: `Count`.
7. In the **Filter** section, create the following filters:
   - `UDM metadata_event_timestamp` **is in range**, and then select both a start and end date and time.
   - `UDM security_result.action_enum_name` **is not null**.
8. Under the **In Use** tab, check that the following fields are displayed. If any are missing, repeat the previous steps to configure the tile.
   - `metadata.event_timestamp`
   - `metadata.event_timestamp Hour` - `metadata`
   - `security_result_action_enum_name` - `security_result`
   - `Count`
9. In the **Data** section, click the icon in the `security_result.action_enum_name` column heading, and then select **Pivot**. A new row appears in the data grid.
10. In the **Visualization** section, select the **Table** icon.
11. Click **Run** to display a preview of the visualization.

The following image shows these configuration options in the **Edit Tile** dialog.

![Configuration options for pivot in a date field](https://docs.cloud.google.com/static/chronicle/images/reports/pivot-enum-date-example-edit-sml.png)

**Configuration options for pivot in a date field**

### Create a chart with detailed timestamp measures

You can create a chart with event counts for each log type along with the oldest
(`min`) and most recent (`max`) event timestamp. This chart uses the `metadata.product_name`
field to identify the log type.

Follow these steps to create a chart with `min` or `max` timestamps:

1. Open an existing [dashboard to edit](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#edit-dashboard)
   or [create a new dashboard](https://docs.cloud.google.com/chronicle/docs/reports/create-custom-dashboard.md.txt#new).

2. Click **Add \> Visualization**.

3. From the **Choose an Explore** dialog, select **UDM Events**.

4. Enter a tile name.

5. Select the **Dimension** field: `metadata.product_name`.

6. Select the **Measure** fields: `Count`, `metadata.event_timestamp (min) Date`,
   `metadata.event_timestamp (max) Date`.

7. Click **Run** to preview the visualization.
   The preview is displayed showing the `metadata.event_timestamp (min) Date` and `metadata.event_timestamp (max) Date`
   values in the date format.

8. Click **Save** .
   The **Dashboards** page is displayed with the newly added chart. The chart includes the **metadata.product_name** , **UDM** , **metadata.event_timestamp (min) Date** , and **metadata.event_timestamp (max) Date** columns with values.

   **Need more help?** [Get answers from Community members and Google SecOps professionals.](https://security.googlecloudcommunity.com/)