The lookup
function set (see the table below) is used in the WHERE
clause of an SQL query to add conditions for assets and accounts to the search query.
Description of the 'lookup' set of functions
Function type |
Event field |
Asset field |
Operator |
Description |
---|---|---|---|---|
|
|
|
|
Allows you to add conditions to the query result for assets whose field values match the value specified in the query. For values that are number, you must specify a string with the required number. For example:
|
|
|
Allows you to add conditions for assets with field values that are:
For values that are number, you must specify a string with the required number. For example:
Date values can be specified in the following formats:
|
||
|
|
Allows you to add conditions to the query result for assets whose field values match the 'like' expression specified in the query. For more information about the like operator, please refer to the SQL Language Expressions reference.
|
||
|
|
Allows you to add to the result asset conditions whose values match the value specified in the query. For example:
|
||
|
|
Allows you to add conditions for assets with IP addresses in the specified subnet. The IP address is specified in CIDR format. For example:
|
||
|
|
Allows you to add conditions for assets with IP addresses in the specified range. The first IP address specified in the query is the start IP address, and the second is the end address. For example:
The query filters assets with IP addresses in the range from 192.168.1.1 to 192.168.1.184. |
||
|
|
|
|
Allows you to add conditions to the query result for accounts whose field values match the value specified in the query. For values that are number, you must specify a string with the required number. For example:
|
|
|
Allows you to add conditions to the query result for accounts whose field values match the 'like' expression specified in the query. For more information about the like operator, please refer to the SQL Language Expressions reference.
|
||
|
|
|
|
Finds all events that have associated assets in the specified folder. For example:
where |
Example SQL queries with a lookup function You can specify a
|