Use queries to identify the exact log records you want Cortex Data Lake to retrieve.
Queries are Boolean expressions that identify the log records Cortex Data Lake will retrieve for the specified log record type. You use them as an addition to the log record type and time range information that you are always required to provide. Use queries to narrow the retrieval set to the exact records you want.
Specify queries using match statements. These statements can be either an equality or pattern matching expression. You can optionally combine these statements using the Boolean operators:
<match_statement> [<boolean> <match_statement>] ...
source_user LIKE 'paloalto*' AND action.value = 'deny'
A query can be at most 2048 characters long. The actual field name that you use for your filters are not identical to the names shown in the column header. Also, the data displayed in the log table might not always be the identical value you want to use in your queries. For example, the
BYTESfield shows values rounded to the nearest byte or kilobyte. To obtain the exact bytes_total value, use the add-to-search feature provided by the query builder.
The filter evaluates queries according to the standard order of precedence for logical operators. At this time, the filter does not support parentheses to change the order of evaluation.
It is an error to create a query with identical start and end times.
Equality operators are described below.
Pattern matching is supported only for fields that contain strings or IP addresses.
For strings and IP addresses, % may be provided as a wild card character at any location in the value. A pattern matching expression that does not provide a wild card returns the identical log lines as an equality comparison.
You must use single quotes with your string values: '<
value>'. Double quotes are illegal: "<
When building a query, you can choose from a set of operators. The following table describes the operators supported by each data type:
* LIKE is not supported for fields such as
protothat have limited possible values.
About Field Names
The field names that you use in your queries are sometimes, but not always, identical to the names shown in the log record column headers. The field name that you must use is the log record field name as it is stored in Cortex Data Lake. There are two ways to obtain this field name:
- Click into the user interface query field to see a drop-down list of available field names for the selected log type. On the right-hand side of this drop-down list is the corresponding column name.
Recommended For You
Recommended videos not found.