Filtering events
The Events section of the KUMA web interface does not show any data by default. To view events, you need to define an SQL query in the search field and click the button. The SQL query can be entered manually or it can be generated using a query builder.
Please note that when switching to the query builder, the query parameters that were manually entered into the search string are not transferred to the builder so you will need to create your query again. Also, the query created in the builder does not overwrite the query that was entered into the search string until you click the Apply button in the builder window.
Data aggregation and grouping is supported in SQL queries.
An SQL query can be changed based on the search results:
- Changing a query from the Statistics window
To change the filtering settings in the Statistics window:
- Open Statistics details area by using one of the following methods:
- In the drop-down list in the top right corner of the events table select Statistics.
- In the events table click any value and in the opened context menu select Statistics.
The Statistics details area appears in the right part of the web interface window.
- Open the drop-down list of the relevant parameter and hover your mouse cursor over the necessary value.
- Use the plus and minus signs to change the filter settings by doing one of the following:
- If you want the events selection to include only events with the selected value, click the icon.
- If you want the events selection to exclude all events with the selected value, click the icon.
As a result, the filter settings and the events table will be updated, and the new search query will be displayed in the upper part of the screen.
- Changing a query from the events table
To change the filtering settings in the events table:
- In the Events section of the KUMA web interface, click any event parameter value in the events table.
- In the opened menu, select one of the following options:
- If you want the table to show only events with the selected value, select Filter by this value.
- If you want to exclude all events with the selected value from the table, select Exclude from filter.
As a result, the filter settings and the events table are updated, and the new search query is displayed in the upper part of the screen.
- Changing a query from the Event details area
To change the filter settings in the event details area:
- In the Events section of the KUMA web interface, click the relevant event.
The Event details area appears in the right part of the window.
- Change the filter settings by using the plus or minus icons next to the relevant settings:
- If you want the events selection to include only events with the selected value, click the icon.
- If you want the events selection to exclude all events with the selected value, click the icon.
As a result, the filter settings and the events table will be updated, and the new search query will be displayed in the upper part of the screen.
In the SQL query input field, you can enable the display of control characters.
You can also filter events by time period. Search results can be automatically updated.
Filter configurations can be saved. Existing filter configurations can be deleted.
Filter functions are available for users regardless of their roles.
After updating KUMA to version 1.6, event filtering that uses an SQL query containing the inSubnet condition may result in error Code: 441. DB::Exception: Invalid IPv4 value. If this is the case, you must add the directive <cast_ipv4_ipv6_default_on_conversion_error>true</cast_ipv4_ipv6_default_on_conversion_error>
in the profiles → default section of the file /opt/kaspersky/kuma/clickhouse/cfg/config.d/users.xml on the storage servers (on each machine of the ClickHouse cluster).
For more details on SQL, refer to the ClickHouse documentation. See also the SQL functions and operators supported by KUMA.
Page top