Question 1
When writing a custom XQL query to hunt for specific network anomalies, which part of the query syntax is used to define the specific table or source of data being searched?
- AOption A:
filter
- BOption B:
dataset
- COption C:
fields
- DOption D:
comp
Show answer and explanation
Correct answer: B
In the XQL (Cortex Query Language) syntax, every query must begin with the dataset stage.
Data Source Identification: The dataset command tells the engine exactly where to look within the Cortex Data Lake. For example, dataset = xdr_data targets endpoint and network logs, while dataset = pan_os_logs targets firewall logs specifically.
Query Structure: Without a defined dataset, the query engine has no context for the fields or filters that follow. Once the dataset is established, you then use pipes (|) to add stages like filter (to narrow results), fields (to select columns), and comp (to perform calculations/aggregations).