> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-cloud-posture-management/cortex-cloud-xql/get-started-with-xql/datasets-and-presets.md).

# Datasets and presets

Every Cortex Query Language (XQL) dataset query begins by identifying a data source that the query will run against. Each data source has a unique name, and a series of fields. Your query specifies the data source, and then provides stages that identify fields of interest and perform operations against those fields.

You can query against either datasets or Presets in a dataset query. XQL supports using different languages for dataset and field names. In addition, the dataset formats supported are dependent on the data retention offerings available in Cortex Cloud according to whether you want to query hot storage (default) or cold storage. For more information, see .

<details>

<summary>Datasets</summary>

The standard, built-in data source that is available in every Cortex Cloud instance is the `xdr_data` dataset. This is a very large dataset with many available fields. For more information about this dataset, see [Cortex XQL Schema Reference](https://cortex-docs.paloaltonetworks.com/xql-schema-reference/). Cortex Query Language (XQL) supports using different languages for dataset and field names. In addition, the dataset formats supported are dependent on the data retention offerings available in Cortex Cloud according to whether you want to query hot storage (default) or cold storage. For more information, see [XQL Command Reference Guide](https://cortex-docs.paloaltonetworks.com/xql-command-reference-guide/).

This dataset is comprised of both raw Endpoint Detection and Response (EDR) events reported by the Cortex Cloud agent, and of logs from different sources such as third-party logs. To help you investigate events more efficiently, Cortex Cloud also stitches these logs and events together into common schemas called stories. These stories are available using the Cortex Cloud Presets.

### Building queries in XQL

When building queries in XQL, keep the following in mind about datasets:

* Use the `dataset` keyword to specify a dataset on your query.
* Create custom datasets using the `target` stage.
* Dataset names can use uppercase characters, but in queries dataset names are always treated as if they are lowercase. In addition, dataset names are supported using different languages, numbers (**`0-9`**), and underscores (**`_`**). Yet, underscores cannot be the first character of the name.
* Upon ingestion, all fields are retained even fields with a null value. You can also use XQL to query parsing rules for null values.
* Schema changes to datasets may not be reflected in the autocomplete suggestions and deﬁnitions as you type in real time the XQL query and can appear with a slight delay.

### Available datasets

| Data                                                                                                                                                   | Dataset                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Active Directory via Cloud Identity Engine                                                                                                             | <p><code>pan\_dss\_raw</code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>To set up this Cloud Identity Engine (previously called Directory Sync Service (DSS)) dataset, you need to set up a Cloud Identity Engine. Otherwise, you will not have a <code>pan\_dss\_raw</code> dataset. For more information, see Set up Cloud Identity Engine.</p></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Asset groups                                                                                                                                           | `asset_groups`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <p><br>Provides metadata for asset groups. Use this dataset to retrieve the human-readable group name for use in queries, reports, and dashboards.</p> |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Issues table in Cortex XDR                                                                                                                             | <p>issues</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><ul><li><code>INFO</code> issues are not included in this dataset.</li><li>The issue fields included in this dataset are limited to certain fields available in the API.</li></ul></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Amazon S3                                                                                                                                              | <ul><li><p>Audit logs</p><ul><li>All logs: <code>aws\_s3\_raw</code></li><li>Normalize and enrich audit logs: <code>cloud\_audit\_logs</code></li></ul></li><li><p>Generic logs</p><ul><li><code>\<Vendor>\_\<Product>\_raw</code></li></ul></li><li><p>Network flow logs</p><ul><li>All logs: <code>aws\_s3\_raw</code></li><li>Normalize and enrich flow logs: <code>xdr\_dataset</code> dataset with a preset called <code>network\_story</code></li></ul></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Authentication logs (subset of xdr\_data)                                                                                                              | <p>Authentication logs, such as Okta: <code>auth\_logs</code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>The fields contained in this dataset are a subset of the fields in the <code>xdr\_data</code> dataset.</p></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| AWS CloudTrail and Amazon CloudWatch                                                                                                                   | `<Vendor>_<Product>_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Azure Event Hub                                                                                                                                        | <ul><li>All logs: <code>MSFT\_Azure\_raw</code></li><li>Normalize and enrich audit logs: <code>cloud\_audit\_logs</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Azure Network Watcher                                                                                                                                  | <ul><li>All logs: <code>MSFT\_Azure\_raw</code></li><li>Normalize and enrich flow logs: <strong><code>xdr\_dataset</code></strong> dataset with a preset called <strong><code>network\_story</code></strong></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| BeyondTrust Privilege Management Cloud                                                                                                                 | `beyondtrust_privilege_management_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Box                                                                                                                                                    | <p>Events (admin\_logs)</p><ul><li><code>box\_admin\_logs\_raw</code></li></ul><p>Box Shield Alerts</p><ul><li><code>box\_shield\_alerts\_raw</code></li></ul><p>Users</p><ul><li><code>box\_users\_raw</code></li></ul><p>Groups</p><ul><li><code>box\_groups\_raw</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Checkpoint FW1/VPN1                                                                                                                                    | `<Vendor>_<Product>_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Cisco ASA                                                                                                                                              | <p>Cisco ASA firewalls or Cisco AnyConnect VPN</p><ul><li><code>cisco\_asa\_raw</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Collector status change audit for collection integrations, custom collectors, and marketplace collectors.                                              | `collection_auditing`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Corelight Zeek                                                                                                                                         | `corelight_zeek_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Correlation rule executions                                                                                                                            | `correlations_auditing`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Cortex Data Lakes                                                                                                                                      | `xdr_data`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Cortex XDR Collectors                                                                                                                                  | `panw_xdrc_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Cortex XDR Host Firewall enforcement events                                                                                                            | `host_firewall_events`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| CSV files in shared Windows directory                                                                                                                  | Custom datasets: Select from pre-existing user-created datasets or add a new dataset.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Database data (MySQL, PostgreSQL, MSSQL, and Oracle)                                                                                                   | `<Vendor>_<Product>_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Data ingestion health metrics                                                                                                                          | <p>Datasets:</p><ul><li><code>data\_ingestion\_health</code></li></ul><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>IMPORTANT: This dataset will not be updated after June 2024. Use the <code>health\_alerts</code> dataset instead.</p></div><ul><li><code>metrics\_source</code></li></ul><p>Presets:</p><ul><li><code>data\_ingestion\_metrics</code> (this preset will be deprecated in the next release and replaced by metrics\_view).</li><li><code>metrics\_view</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Dropbox                                                                                                                                                | <p>Events</p><ul><li><code>dropbox\_events\_raw</code></li></ul><p>Member Devices</p><ul><li><code>dropbox\_members\_devices\_raw</code></li></ul><p>Users</p><ul><li><code>dropbox\_users\_raw</code></li></ul><p>Groups</p><ul><li><code>dropbox\_groups\_raw</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Elasticsearch Filebeat                                                                                                                                 | `<Vendor>_<Product>_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Elasticsearch Winlogbeat                                                                                                                               | <p><code>\<Vendor>\_\<Product>\_raw</code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>If the vendor and product are not specified in the Winlogbeat profile’s configuration file, Cortex XSIAM creates a default dataset called <code>microsoft\_windows\_raw</code>.</p></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Errors related to Parsing Rules and Data Model Rules                                                                                                   | `parsing_rules_errors`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Errors related to event forwarding                                                                                                                     | `event_forwarding_errors`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Forcepoint DLP                                                                                                                                         | `forcepoint_dlp_endpoint_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Fortinet Fortigate                                                                                                                                     | `<Vendor>_<Product>_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| GlobalProtect access authentication logs                                                                                                               | <p><code>xdr\_data</code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>To ensure GlobalProtect access authentication logs are sent to Cortex AgentiX, verify that your PANW firewall’s Log Settings for GlobalProtect has the Cortex Data Lake checkbox selected.</p></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Google Cloud Platform (GCP) logs                                                                                                                       | <ul><li>All log types: <code>google\_cloud\_logging\_raw</code></li><li><p>Normalize and enrich audit and flow logs: <code>cloud\_audit\_logs</code></p><ul><li>Audit logs: <code>cloud\_audit\_logs</code></li><li>Network flow logs: <code>xdr\_dataset</code> dataset with a preset called <code>network\_story</code></li></ul></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Google Kubernetes Engine (GKE)                                                                                                                         | `<Vendor>_<Product>_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Google Workspace                                                                                                                                       | <ul><li>Google Chrome: <code>google\_workspace\_chrome\_raw</code></li><li>Admin Console: <code>google\_workspace\_admin\_console\_raw</code></li><li>Google Chat: <code>google\_workspace\_chat\_raw</code></li><li>Enterprise Groups: <code>google\_workspace\_enterprise\_groups\_raw</code></li><li>Login: <code>google\_workspace\_login\_raw</code></li><li>Rules: <code>google\_workspace\_rules\_raw</code></li><li>Google drive: <code>google\_workspace\_drive\_raw</code></li><li>Token: <code>google\_workspace\_token\_raw</code></li><li>User Accounts: <code>google\_workspace\_user\_accounts\_raw</code></li><li>SAML: <code>google\_workspace\_saml\_raw</code></li><li>Alerts: <code>google\_workspace\_alerts\_raw</code></li><li>Emails: <code>google\_gmail\_raw</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Host Inventory and Vulnerability Assessment                                                                                                            | <ul><li><p>Datasets</p><ul><li><code>host\_inventory</code></li><li><code>va\_cves</code></li><li><code>va\_endpoints</code></li></ul></li><li><p>Presets</p><ul><li><code>host\_inventory</code></li><li><code>host\_inventory\_accessibility</code></li><li><code>host\_inventory\_applications</code></li><li><code>host\_inventory\_auto\_runs</code></li><li><code>host\_inventory\_cpus</code></li><li><code>host\_inventory\_daemons</code></li><li><code>host\_inventory\_disks</code></li><li><code>host\_inventory\_drivers</code></li><li><code>host\_inventory\_endpoints</code></li><li><code>host\_inventory\_extensions</code></li><li><code>host\_inventory\_groups</code></li><li><code>host\_inventory\_kbs</code></li><li><code>host\_inventory\_mounts</code></li><li><code>host\_inventory\_services</code></li><li><code>host\_inventory\_shares</code></li><li><code>host\_inventory\_users</code></li><li><code>host\_inventory\_volumes</code></li><li><code>host\_inventory\_vss</code></li></ul></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Cases table in Cortex XDR                                                                                                                              | `cases`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| JSON or text logs from third-party source over HTTP                                                                                                    | `<Vendor>_<Product>_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Login logs (subset of xdr\_data)                                                                                                                       | <p>Login logs, such as WEC: <code>login\_logs</code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>The fields contained in this dataset are a subset of the fields in the <code>xdr\_data</code> dataset.</p></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Logs from third party source over FTP, FTPS, or SFTP                                                                                                   | `<Vendor>_<Product>_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Microsoft 365 (email)                                                                                                                                  | <ul><li><code>msft\_o365\_emails\_raw</code></li><li><code>msft\_o365\_users\_raw</code></li><li><code>msft\_o365\_groups\_raw</code></li><li><code>msft\_o365\_devices\_raw</code></li><li><code>msft\_o365\_mailboxes\_raw</code></li><li><code>msft\_o365\_rules\_raw</code></li><li><code>msft\_o365\_contacts\_raw</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Microsoft Office 365                                                                                                                                   | <ul><li><p>Microsoft Office 365 audit events from Management Activity API:</p><ul><li>Azure AD Activity Logs: <code>msft\_o365\_azure\_ad\_raw</code></li><li>Exchange Online: <code>msft\_o365\_exchange\_online\_raw</code></li><li>Sharepoint Online: <code>msft\_o365\_sharepoint\_online\_raw</code></li><li>DLP: <code>msft\_o365\_dlp\_raw</code></li><li>General: <code>msft\_o365\_general\_raw</code></li></ul></li><li>Microsoft Office 365 emails via Microsoft’s Graph API: <code>msft\_o365\_emails\_raw</code></li><li>Azure AD authentication events from Microsoft Graph API: <code>msft\_azure\_ad\_raw</code></li><li>Azure AD audit events from Microsoft Graph API: <code>msft\_azure\_ad\_audit\_raw</code></li><li>Alerts from Microsoft Graph Security API: <code>msft\_graph\_security\_alerts\_raw</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| NetFlow                                                                                                                                                | <ul><li><code>ip\_flow\_ip\_flow\_raw</code> (default)</li><li>When configured, uses the format <code>\<Vendor>\_\<Product>\_raw</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Network Share logs                                                                                                                                     | `<Vendor>_<Product>_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Okta                                                                                                                                                   | `okta_sso_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| OneLogin                                                                                                                                               | <p>Log collection</p><ul><li><code>onelogin\_events\_raw</code></li></ul><p>Directory</p><ul><li><code>onelogin\_users\_raw</code></li><li><code>onelogin\_groups\_raw</code></li><li><code>onelogin\_apps\_raw</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| PANW EDR                                                                                                                                               | `xdr_data`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| PANW IOT Security                                                                                                                                      | <p>Alerts</p><ul><li><code>panw\_iot\_security\_alerts\_raw</code></li></ul><p>Devices</p><ul><li><code>panw\_iot\_security\_devices\_raw</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| PANW NGFW                                                                                                                                              | <p><code>panw\_ngfw\_\_raw</code></p><p>Supports the following logs.</p><ul><li>Authentication Logs: <code>panw\_ngfw\_auth\_raw</code></li><li><p>Configuration Logs: <code>panw\_ngfw\_config\_raw</code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Prisma Access firewalls do not send configuration logs to the Structured Log Storage (SLS).</p></div></li><li>File Data Logs: <code>panw\_ngfw\_filedata\_raw</code></li><li>Global Protect Logs: <code>panw\_ngfw\_globalprotect\_raw</code></li><li>Hipmatch Logs: <code>panw\_ngfw\_hipmatch\_raw</code></li><li>System Logs: <code>panw\_ngfw\_system\_raw</code></li><li>Threat Logs: <code>panw\_ngfw\_threat\_raw</code></li><li>Traffic Logs: <code>panw\_ngfw\_traffic\_raw</code></li><li>\*URL Logs: <code>panw\_ngfw\_url\_raw</code></li><li>User ID Logs: <code>panw\_ngfw\_userid\_raw</code></li><li>Tunnel Logs: <code>panw\_ngfw\_tunnel\_raw</code></li><li>Configuration Logs: <code>panw\_ngfw\_config\_raw</code></li></ul><p>\*These datasets use the query field names as described in the <a href="/spaces/6UN9P7f8B5L9QmLYI9Te">Cortex XQL Schema Guide</a>.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| PingFederate                                                                                                                                           | `ping_identity_pingfederate_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| PingOne for Enterprise                                                                                                                                 | `pingone_sso_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Playbook runs                                                                                                                                          | `playbook_runs`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Playbook tasks                                                                                                                                         | `playbook_tasks`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Prisma Browser                                                                                                                                         | `panw_prisma_access_browser_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Prisma Cloud                                                                                                                                           | `prisma_cloud_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Prisma Cloud Compute                                                                                                                                   | `prisma_cloud_compute_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Proofpoint Targeted Attack Protection                                                                                                                  | `proofpoint_tap_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Scripts and commands metrics                                                                                                                           | `scripts_and_commands_metrics`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| SentinelOne DeepVisibility                                                                                                                             | `sentinelone_deep_visibility_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ServiceNow CMDB                                                                                                                                        | A ServiceNow CMDB dataset is created for each table configured for data collection using the format `servicenow_cmdb_<table name>_raw`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Salesforce.com                                                                                                                                         | <ul><li><code>salesforce\_connectedapplication\_raw</code></li><li><code>salesforce\_permissionset\_raw</code></li><li><code>salesforce\_profile\_raw</code></li><li><code>salesforce\_groupmember\_raw</code></li><li><code>salesforce\_group\_raw</code></li><li><code>salesforce\_user\_raw</code></li><li><code>salesforce\_userrole\_raw</code></li><li><code>salesforce\_document\_raw</code></li><li><code>salesforce\_contentfolder\_raw</code></li><li><code>salesforce\_attachment\_raw</code></li><li><code>salesforce\_contentdistribution\_raw</code></li><li><code>salesforce\_tenantsecuritylogin\_raw</code></li><li><code>salesforce\_useraccountteammember\_raw</code></li><li><code>salesforce\_tenantsecurityuserperm\_raw</code></li><li><code>salesforce\_account\_raw</code></li><li><code>salesforce\_audit\_raw</code></li><li><code>salesforce\_login\_raw</code></li><li><code>salesforce\_eventlogfile\_raw</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Syslog/CEF                                                                                                                                             | `<CEFVendor>_<CEFProduct>_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| USB devices connect and disconnect events reported by the agent                                                                                        | <p><code>xdr\_data</code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><ul><li>You can query in XQL for this data and build widgets based on the <code>xdr\_data</code> dataset or using the preset <code>device\_control</code>.</li><li>To view in an XQL query these events, the Device Configuration of the endpoint profile must be set to Block. Otherwise, the USB events are not captured. The events are also captured when a group of device types are blocked on the endpoints with a permanent or temporary exception in place. For more information, see \[Ingest Connect and Disconnect Events of USB Devices] in <a href="https://docs-cortex.paloaltonetworks.com/access?ft:baseId=UUID-9975c6ae-5ab4-f038-1a7f-2a1f9c3d12c8">Device control</a>.</li></ul></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| VPN logs (subset of `xdr_data`)                                                                                                                        | <p>VPN logs, such as GlobalProtect: <code>vpn\_logs</code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>The fields contained in this dataset are a subset of the fields in the <code>xdr\_data</code> dataset.</p></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Windows Endpoints using Cortex XDR Forensics Add-on                                                                                                    | <ul><li><code>forensics\_amcache</code></li><li><code>forensics\_application\_resource\_usage</code></li><li><code>forensics\_arp\_cache</code></li><li><code>forensics\_background\_activity\_monitor</code></li><li><code>forensics\_chrome\_history</code></li><li><code>forensics\_cid\_size\_mru</code></li><li><code>forensics\_command\_history</code></li><li><code>forensics\_dns\_cache</code></li><li><code>forensics\_edge\_anaheim\_history</code></li><li><code>forensics\_edge\_spartan\_history</code></li><li><code>forensics\_event\_log</code></li><li><code>forensics\_file\_access</code></li><li><code>forensics\_file\_listing</code></li><li><code>forensics\_firefox\_history</code></li><li><code>forensics\_handles</code></li><li><code>forensics\_hosts\_file</code></li><li><code>forensics\_internet\_explorer\_history</code></li><li><code>forensics\_jumplist</code></li><li><code>forensics\_last\_visited\_pidl\_mru</code></li><li><code>forensics\_log\_me\_in</code></li><li><code>forensics\_net\_sessions</code></li><li><code>forensics\_network</code></li><li><code>forensics\_network\_connectivity\_usage</code></li><li><code>forensics\_network\_data\_usage</code></li><li><code>forensics\_open\_save\_pidl\_mru</code></li><li><code>forensics\_port\_listing</code></li><li><code>forensics\_prefetch</code></li><li><code>forensics\_process\_execution</code></li><li><code>forensics\_process\_listing</code></li><li><code>forensics\_psreadline</code></li><li><code>forensics\_recent\_files</code></li><li><code>forensics\_recentfilecache</code></li><li><code>forensics\_recycle\_bin</code></li><li><code>forensics\_registry</code></li><li><code>forensics\_remote\_access</code></li><li><code>forensics\_seven\_zip\_folder\_history</code></li><li><code>forensics\_shellbags</code></li><li><code>forensics\_shimcache</code></li><li><code>forensics\_team\_viewer</code></li><li><code>forensics\_typed\_paths</code></li><li><code>forensics\_typed\_urls</code></li><li><code>forensics\_user\_access\_logging</code></li><li><code>forensics\_user\_assist</code></li><li><code>forensics\_windows\_activities</code></li><li><code>forensics\_winrar\_arc\_history</code></li><li><code>forensics\_word\_wheel\_query</code></li></ul> |
| Windows event logs via Cortex XDR Windows agents                                                                                                       | `microsoft_windows_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Windows Event Collector (WEC)                                                                                                                          | <ul><li><code>xdr\_data</code></li><li><code>microsoft\_windows\_raw</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Windows DHCP using Elasticsearch Filebeat                                                                                                              | `microsoft_dhcp_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Windows DNS Debug using Elasticsearch Filebeat                                                                                                         | <p>Raw Data</p><ul><li><code>microsoft\_dns\_raw</code></li></ul><p>Normalized Stories</p><ul><li><code>xdr\_data</code> with the preset called <code>network\_story</code>.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Workday                                                                                                                                                | `workday_workday_raw`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Zscaler Cloud Firewall                                                                                                                                 | <p>ZIA</p><ul><li>Firewall logs: <code>zscaler\_nssfwlog\_raw</code></li><li>Web logs: <code>zscalar\_nssweblog\_raw</code></li></ul><p>ZPA</p><ul><li><code>zscaler\_zpa\_raw</code></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |

</details>

<details>

<summary>Presets</summary>

Presets offer groupings of `xdr_data` fields that are useful for analyzing specific areas of network and endpoint activity. All of the fields available for a preset are also available on the larger `xdr_data` dataset, but by using the preset your query can run more efficiently. Presets are sorted at random by the first one million results found.

Two of the available presets are stories. These contain information stitched together from Cortex Cloud agent events and log files to form a common schema. They are `authentication_story` and `network_story`.

You use the `preset` keyword to specify a dataset in your query.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-cloud-posture-management/cortex-cloud-xql/get-started-with-xql/datasets-and-presets.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
