When you want to search for real-time data or hunt for a threat on managed endpoints, create queries using the real-time search syntax that includes projection and filter.
Use this detailed example to create powerful, real-time search queries.
Processes name, id where Processes threadcount greater than 10
Projection
The projection clause specifies which columns to show in the search results table. This example shows only two columns: process name and id.
Processes name, id
Term | Name | Description |
|---|---|---|
| Collector name | Specifies the search capabilities and output fields of the specific collector. In the example, the collector for running processes is selected. |
| Collector output fields | Selects an output field from the collector. In the projection, the output field represents a column in the result table. |
Filter
The filter clause specifies conditions to match in the returned data. Only data that matches the filter appear in the search results table. In this example, only processes that execute 10 or more threads match the filter.
where Processes threadCount greater equal than 10
Term | Name | Description |
|---|---|---|
| Filter keyword | The keyword that starts a filter clause. |
| Collector name | Specifies the search capabilities and output fields of the specific collector. In the example, the collector for running processes is selected. |
| Collector output field | Specifies which data must be matched against the condition output field from the collector. |
| Comparison operator | The operator that defines the condition to match. Different operators are available for different literal types. |
| Literal | A literal value. |
Logical operators
Operator | Used in | Usage | Description |
|---|---|---|---|
| Projections and filters | Projection: Filter: | In a projection, |
| Filters |
| Displays a result record if either the first condition |
| Filters |
| Negates a comparison operator, so that the condition returns |
| Filters |
This is a single query with 3 conditions:
| This type of filter is not supported in a single query with 3 conditions as brackets are not supported to prioritize conditions. |
| Filters |
There are 2 queries combined with
| Displays a combined record result of both queries with the condition of having same sequence of collectors to be used in both queries (that is, |
Comparison operators
Data type | Operator | Sample usage |
|---|---|---|
Timestamp |
|
|
|
| |
Number |
|
|
|
| |
|
| |
|
| |
|
| |
String
|
|
|
|
| |
|
| |
|
| |
String
|
|
|
IP
|
|
|
|
|
Literals
When searching for a path, you must enter an additional \ character in directory paths, for example, Users\Administrator\Documents. When searching for a value that includes a double quotation mark, use the \ character before the quotation, for example, Files where File name contains \".
Type | Sample values |
|---|---|
Timestamp |
|
Number |
|
IP |
|
String |
|
Win Registry String |
|