Making Queries |
A Query is a part of a FixIt! filter that defines categories of objects, data on which you want to view. The other part, Fields, defines the categories of data on the selected object categories. This section contains information on queries. Query structure and syntax A query consists of: •arguments (categories of objects you search for) •values (parameters of certain objects within a category) One query can contain several conditions, combined by logical operators. To group conditions together, use brackets (...). Example:
This query will return all objects with the type File, whose value of arkstatus.file corresponds to malicious and suspicious files. The main operators used to combine conditions in queries are AND, OR и AND NOT. •The AND operator helps find elements that match all conditions at once. It can be replaced with the (+) character before the value. •The OR operator helps find elements that match any one of the conditions. •The AND NOT operator helps find elements that do not match any conditions defined after it. It can be replaced with the (-) character before the value. You can also use character operators in queries. See the list of character operators and their description in this table.
For objects with the data types ‘date’, ‘integer’, or ‘string’, you can specify ranges in queries. •If both upper and lower bound are included in the required range, use square brackets [...]: [min TO max] •If both upper and lower bound are excluded from the required range, use curly brackets {...}: {min TO max} •If only one of the bounds is included in the range, use both types of brackets: [min TO max} •If the range only has one bound, use the * character: [min TO *] You can also use simplified syntax for ranges. For ranges with one bound: •size:>10 •size:>=10 •size:<10 •size:<=10 Ranges with both bounds require grouping of conditions when using simplified syntax: •size:(>=10 AND <20) •size:(+>=10 +<20) |