Log Explorer and DashboardsDashboard Widgets

Dashboard Widgets

A widget is one chart, number or table on a dashboard. You build it in the widget editor by answering a few questions: which data, which records, and how to break them down. UTMStack v12 writes the query for you; widgets have no SQL.

Before you start

  • You need the dashboards.write permission (Administrator and Analyst roles).

  • Widgets can only be added to dashboards you created or copied. Shipped dashboards cannot be changed.

  • A widget belongs to one dashboard. It is saved as soon as you click Save widget.

Add a widget

  1. 1

    Open the dashboard in edit mode

    Open the dashboard and click Edit (the pencil), then Add widget.

  2. 2

    Pick a chart type

    The Pick a chart type dialog opens. Choose one of the types in the table below and click Continue. You can change the type later.

    The Pick a chart type dialog with the Bar, Line, Area, Pie, Metric, Table, List, Coordinate map and Text types and the Continue button
  3. 3

    Answer the questions

    The New widget page opens with the questions on the left and a live Chart preview on the right. Fill them in as described in Build the widget below.

  4. 4

    Save

    Click Save widget. You return to the dashboard, still in edit mode. Move or resize the new widget if needed, then click Save in the edit bar.

Chart types

TypeWhat it shows
BarCompare values across categories, or counts over time
LineTrends over time
AreaA filled line chart that stresses volume
PieShare of a whole by category
MetricA single number: how many records match
TableAggregated rows: a count per value of a field, or a list of records with chosen columns
ListRaw records, one per row, with chosen columns
Coordinate mapOne marker per record on a world map, from latitude and longitude fields
TextEach record as a line of text (field: value pairs)

Every chart type counts records. A widget cannot add up, average or count distinct values of a field.

Build the widget

Title

Optional. Without a title, the widget is named after its chart type.

Which data?

Choose the Data set: logs or alerts. Until you choose one, conditions and grouping are disabled ("Choose a data set to enable conditions and grouping.").

The widget editor has no data type setting. To limit a widget to one source, add the condition dataType is (for example) wineventlog.

Include only events where…

Add conditions to narrow the records. Click Add condition, then pick a Field, an Operator and a Value. With no conditions, "all events in the time range are included". All conditions must match.

OperatorValue
is, is notOne value
is one ofComma-separated values
is greater than, is less than or equalsOne value
is betweenFrom and To
contains, does not contain, starts with, ends withOne value
exists, does not existNo value needed

How each operator compares values is described on Filter Operators Reference. In UTMStack v12.0.2, is greater than, is less than or equals and is between do not work on fields inside origin, target or log: use them only on top-level number fields. For time, rely on the dashboard's time range instead of a condition.

Break down by

Bar, Line, Area and Pie charts, and Table, ask how to split the count:

ChoiceSettingsResult
Over timeBucket size: Auto (1 hour), 1m, 5m, 15m, 1h, 1d or 1w. Optionally a Field ("Optional: one line per value of this field.").A count per time bucket, as one line, or one line per value of the field
Top valuesA Field ("Pick a field to group by…").A count per value of that field, largest first

How many sets the number of values (or lines) shown. The default is 50.

For Table, this section is called Top values table. Top values gives one row per value with its count. Over time instead lists records with the Columns you choose.

Only fields with a single value per record can be used to group: not whole objects such as origin, not lists and not the original log line.

Columns

For Table (with Over time), List, Coordinate map and Text, the widget shows records, newest first. Under Columns, click Add a column… to choose the fields to show. With no columns, every field of the record is shown. How many sets the number of records (default 50).

The column header shows the last part of the field name (country for origin.geolocation.country), unless two columns would end the same way.

Coordinate map

A coordinate map needs a latitude and a longitude for each record. Add the two geolocation fields of one side as columns, for example origin.geolocation.latitude and origin.geolocation.longitude. Add origin.geolocation.city or origin.ip as a third column to label the markers. Records without a valid position are skipped ("No points with valid lat/lon.").

The map background is loaded from OpenStreetMap, so the browser needs internet access to show it. The geolocation fields are written by pipelines that use geolocation enrichment; see Geolocation Enrichment.

Change a widget

  1. Open the dashboard and click Edit.

  2. Use the widget's edit button. The Edit widget page opens.

  3. To switch chart type, click the Chart: chip next to the title, pick a type and click Apply.

  4. Change the answers and click Save widget.

Widgets on shipped dashboards, and widgets built by the SOC-AI assistant, can carry a data type and conditions that the widget editor does not show. If you open such a widget (for example on a copy of a shipped dashboard) and click Save widget, its data type and those conditions are removed, and the widget starts counting every record of the data set. Before you save, add the conditions again, including dataType is <type>.

Remove a widget

In edit mode, use the widget's remove button, then click Save. Confirm "Delete this widget? This cannot be undone." The widget is deleted for good.

Limits

LimitValue
What a widget measuresA count of records only
Values, lines or records per widget50 by default, 10,000 at most
Time bucketsAuto (1 hour), 1 minute, 5 minutes, 15 minutes, 1 hour, 1 day, 1 week
Time windowThe dashboard's time range; widgets have no time range of their own

When a widget cannot load, it shows "Could not load widget data." with the reason and a retry button.