Create, search, and view custom widgets in Cortex XSIAM, or use predefined widgets.
The widget library displays predefined widgets and user-created Custom Cortex Query Language (XQL) widgets. You can include these widgets in your custom dashboards and reports. To access the widget library, navigate to → → .
Create and Edit Custom Widgets Based on XQL Search Queries
In the widget menu, Create custom XQL widget.
Enter a widget Name and Description.
Create an XQL query. Select XQL Helper to view XQL search and schema examples.
Generate the XQL query to display the search results.
Note
Cortex Query Language (XQL) queries generated from the widget library do not appear in the Query Center. The results are used only for creating the custom widget.
In the Widget section, define how you want to visualize the results.
(Optional) Add parameters to the query.
You can use parameter filters to filter widget data on a dashboard or report, and create drilldowns on dashboards. For more information, see Using Dashboard Filters, Inputs, and Drilldowns.
Note
Use the
filter
stage with parameters prefixed with$
.If you specify a single value for a parameter, use the
=
operator. To specify multiple values for a parameter, use theIN
operator.If you Assign Parameters (default values), data is automatically populated when you add the widget to a dashboard or report. Alternatively, you can configure default values when you set up a dashboard or report.
Parameter filter examples:
The following XQL query specifies a parameter that can be configured to filter a single value.
dataset = <dataset> | filter name = $name
The following XQL query specifies a parameter that can be configured to filter multiple static or dynamic values:
dataset = <dataset> | filter name IN ($name)
(Optional) Specify a time frame. The default time frame is 1M.
Save widget.
The custom widget appears in the list of existing widgets.
Search for Custom and Predefined Widgets
Search for a widget or Show widgets according to the widget category.
Select a widget type to display the widget graph type and parameters. By default, Cortex XSIAM displays the widget with Mock Data. Toggle to display your current Real Data.
Edit or Delete Custom Widgets
Identify a custom widget to update or delete.
Select Update widget () or Delete widget from library.
Note
Any dashboards or reports that include the widget are affected by the changes.