Create XQL widgets
Create widgets that visualize results from XQL queries.
Custom XQL widgets allow you to build charts based on specific Cortex Query Language (XQL) queries. To create an XQL widget, from the Widget Library click Create widget > XQL widget.
Define your query
In the query editor, define your XQL query.\
(Optional) Add parameters to your query to configure filters and drilldowns on your dashboard. For more information see Add parameters to a custom XQL widget.
(Optional) Change the default time period using the time picker at the top right of the window. Select from the following options:
Standard time frames: Predefined ranges, such as Last 24 hours or Last 30 days.
Relative time: Define a custom window (e.g., the last
<number>of minutes, hours, or days).Calendar: Create a customized, static date/time period.
Click Preview to validate your data results.
Define the graph visualization
In the Widget tab, select Graph and use the Chart Editor to configure the following fields:
Graph type & Subtype: Select your visualization style (e.g., Area, Column, Pie, Single Value, Table).
Headers & labels: Define header text and choose whether to display callouts or percentages.
Axis Mapping: Map your data fields to the X-axis (string values) and Y-axis (numeric values).
Series (Optional): Specify a field (column) to group chart results based on Y-axis values. Note: This option only appears for supported graph types when a single Y-axis value is selected.
Group additional values (Optional): Select Group additional values as Others and set the maximum number of values to display. This reduces clutter by limiting the number of data values to display and grouping additional values in an “Others” category.
Apply default limit (Optional): Select this to limit the number of returned results for optimal loading times. Alternatively, you can add the limit stage directly to your query.
Baseline (Optional): Add a baseline reference value to the graph (available for select graph types).
Styling (Optional): Customize colors, fonts, and legend placements as required.
Last updated
Was this helpful?
