Query Builder is the main tool for displaying and filtering data in the iBatyr Monitor web interface.

The constructor is located on the main page and on the filter page:

Illustration 1 — Working in Constructor

Basic elements of the constructor:

  • Time filter (Datepicker) - select a time range to display data, for example month or year.

  • Search – field for searching by text, phrase or regular expression.

  • Dimensions - list of dimensions for data filtering: Event types, Users, Devices, etc.

  • Dimension values - list of values for the selected dimension. For example, a list of all users for the User dimension.

  • Search by dimension - searches for values within the selected dimension.

The designer on the filter page contains two additional buttons:

  • Complex query - a window for filtering data using logical expressions AND, OR.

  • Filter code is a text editor for changing filter parameters or sending the filter code to support.

How to use the constructor

The contents of the design panel change according to the selected dimension.

Example: Display events of user TestUser for November 24th.

  1. Select the User dimension → User in the Dimension List.

  2. Select the TestUser value in the List of Dimension Values.

  3. Select the Date - Day dimension in the List of Dimensions.

  4. Highlight 24-Nov-2024 in the List of Measurement Values.

Filtering conditions appear in the lower left corner of the page.

Illustration 2 — Working in Constructor

Click x on a condition to remove it completely.

Illustration 3 — Working in Constructor

Click on ± to exclude only the value. For example, click on the ± next to chrome.exe to exclude events from the Google Chrome application.

Illustration 4 — Working in Constructor Illustration 5 — Working in Constructor

Search - Keyword

The Search - Keyword field allows you to search for data by keyword, substring or regular expression.

To select a condition, click on the drop-down menu next to the search field:

Illustration 6 — Working in Constructor

Example. Find events using the keyword resume.

  1. To the left of the Search - Keyword field, select the @ option.

  2. In the Search - Keyword field, enter resume and click the search button. The search term will then appear in the lower left corner and the Event Lens will display events that contain a summary.

Illustration 7 — Working in Constructor
  1. Click on an event in the Lens to view information about it. The keyword will be highlighted in yellow.

Illustration 8 — Working in Constructor

Datapicker

Datapicker allows you to filter events by time. To open it, click on the line Period from in the top left panel.

You can set the time in three ways:

  • highlight days on the calendar;

  • specify the start and end dates of the period in the input field;

  • select the appropriate option to the left of the calendar.

After selecting the date, check the Fix checkbox. Thanks to this, the time filter will not be reset when the page is refreshed through the Home and Refresh buttons or the F5 key.

Illustration 9 — Working in Constructor

Measurements

A fixed list of measurement categories that is displayed on the left side of the window. When you select a dimension, the designer will show monitoring events for that dimension only.

Illustration 10 — Working in Constructor

You can select multiple measurements at once.

Example. Show events for user TestUser.

  1. Click on Event Type.

  2. Select the desired event in the adjacent value column.

  3. In the list of dimensions, click User and select the user TestUser from the list of values.

Measurement values

Allows you to filter events by specific values of the selected dimension. For example, if you select the Computer dimension, a list of all computers will appear. Select a computer to display relevant events in Lens.

Note

When creating or editing a filter, the dates set in the DataPicker are not taken into account, so the designer will show data for all time in the filter window.

To manage the list, click the three horizontal lines sort_icon in the right corner:

Illustration 12 — Working in Constructor

Adding monitoring rules from the designer

In the Designer you can add a monitoring rule to the computer configuration.

You can add rules for the following dimensions:

  • User - User,

  • Application - Title,

  • Website - Full domain,

  • Website - URL,

  • Website - Main domain,

  • Site - Content Type,

  • Network activity - IP address,

  • Network activity - Network port,

  • File - File path,

  • Device—device IDs,

  • Device - Device class.

Example. Users regularly visit the ya.ru website, so there is no need to track activity on the site. You need to add Do Not Track to Default Configuration.

  1. On the main page of the web interface, in the List of Dimensions, select Site - Full Domain.

  2. In the List of measurement values find the value ya.ru.

  3. Click on the icon_settings gear icon next to the value and select Edit Rules. The window for adding rules to the configuration will open.

Illustration 14 — Working in Constructor
  1. Select Default Configuration and select Block for the Network Monitoring - Address field.

Illustration 15 — Working in Constructor
  1. Click Save.

As a result, for the Default Configuration in the Network Monitoring - Address section, a ban on tracking events from ya.ru has been added.

Illustration 16 — Working in Constructor

Search by dimension

The Search - Dimension input field allows you to find the dimension value in the constructor.

Example. During the day, users opened more than a hundred applications, you want to find winword.exe events. Select Applications → Name from the list of measurements and enter win in the search.

Illustration 17 — Working in Constructor

Complex request

An additional button in the designer on the filter page. Use a complex query to group multiple simple conditions using Boolean operators.

When you specify filter conditions in the Designer, there is AND between the dimensions - for example, event type AND username. In a Complex query, in addition to AND, the OR operator is available.

Use logical operators:

  • AND: so that both conditions must be met;

  • OR: if one fulfilled condition is sufficient.

A complex query is more convenient for setting up the policy filter because more complex conditions are used to filter them.

Example. You need to create a policy that tracks visits to corporate sites.

  1. Click + Create - Policy. The policy creation window will open.

  2. Enter the name Work resources and click Policy active.

  3. Go to the Filter - Complex Query tab.

  4. Click + Condition and select Event Type - Equal to - Activity Time.

  5. Select the AND operator and click Condition Group.

  6. Click + Condition and select Site - Main Domain - Equal - ibatyr.kz.

  7. Select the OR operator and click + Condition.

  8. Click + Condition and select Site - Main Domain - Equal - bitrix24.ru.

Illustration 18 — Working in Constructor

Conditional statements of a complex query

Complex queries allow you to filter events by combining comparison operators. These operators help set the conditions under which data will be included or excluded from the sample.

Equal / Not equal

Equal outputs events whose values are strictly equal to the value in the condition.

Print user events TestUser:

Illustration 19 — Working in Constructor

Not Equal excludes events with the specified value.

Display emails sent to any domain except company_domain.ru:

Illustration 20 — Working in Constructor

Contains / Does not contain

Contains outputs events if their value includes the specified substring.

Display events with files whose names contain the substring UPD, for example UPD 2.xls, UPD.rtf, Updated upd2_0.pdf:

Illustration 21 — Working in Constructor

Does Not excludes events containing the specified substring.

Filter files that do not have the word screenshot in their names:

Illustration 22 — Working in Constructor

Listed / Not listed

In list displays events whose values are included in the list of values.

To find emails sent to testuser1@testmail.ru, testuser2@testmail.ru or testuser3@testmail.ru from the Trusted Counterparties list:

  1. Create a list of Trusted Counterparties and add values to it.

Illustration 23 — Working in Constructor
  1. Add a condition:

Illustration 24 — Working in Constructor

Not in the list excludes events with values from the list.

Display events for devices that are not included in the Trusted USB drives list:

Illustration 25 — Working in Constructor

Regular expression

Prints events whose values match the regular expression pattern.

Find events containing passport number 4321 567890:

Illustration 26 — Working in Constructor

Filter code

The filter code displays the filtering conditions that were specified through the Designer or Complex filter.

Warning

You can check the parameter values in the Filter Code, but do not use it for full customization. If you have any questions or errors while working with the filter, copy the code and send it to the technical support service.

Illustration 27 — Working in Constructor