You can use Active lists widgets to get the necessary analytics based on SQL queries sent to the active lists. Depending on the selected value of the graph type, two or three parameter tabs are available:
The following parameters are available for the tab:
The same resource of an active list can be used by different correlator services. However, a separate entity of the active list is created for each correlator. Therefore, the contents of the active lists used by different correlators differ even if the active lists have the same names and IDs.
In contrast to an event search, the FROM parameter must match the value of `records`
in search queries through active lists.
The service fields _key
(the field with the keys of the active list records) and _count
(the number of times this record has been added to the active list), and custom fields are available for queries.
Examples:
SELECT count(_key) AS metric, Status AS value FROM `records` GROUP BY value ORDER BY metric DESC LIMIT 250
—Query for a pie chart that returns the number of keys of the active list (count
aggregation based on the _key
field) and all options for values of the custom field Status
. The widget displays a pie chart with the total number of records in the active list, divided proportionally by the number of possible values for the Status
field.SELECT Name, Status, _count AS Number FROM `records` WHERE Description ILIKE '%ftp%' ORDER BY Name DESC LIMIT 250
—Query for the table that returns the values of the Name
and Status
custom fields and the _count
service field for those active list records in which the value of the Description
custom field matches the query ILIKE '%ftp%'
. The widget displays a table with the Status, Name, and Number columns.If a date and time conversion function is used in an SQL query (for example, fromUnixTimestamp64Milli) and the field being processed does not contain a date and time, an error will be displayed in the widget. To avoid this, use functions that can handle a null value. Example: SELECT _key, fromUnixTimestamp64Milli(toInt64OrNull(DateTime)) as Date FROM `records` LIMIT 250
.
The following parameters are available for the tab:
Negative values can be displayed on chart axes. This is due to the scaling of charts on the widget and can be fixed by setting zero as the minimum chart values instead of Auto.
The following parameters are available for the tab:
When this option is enabled, when a widget displays a large amount of data, the horizontal scrolling will not be available and data will be fit into the widget window. If there is a lot of data to display, it is recommended to increase the widget size.