> 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-xdr-5.x/reference-and-developer-docs/cortex-xdr-xql/build-xql-queries/legacy-query-builder.md).

# XQL query entities

With Query Builder, you can build complex queries for entities and entity attributes so that you can surface and identify connections between them. Cortex XDR provides Cortex Query Language (XQL) queries for different types of entities in the Query Builder that search predefined datasets. The Query Builder searches the raw data and logs stored in Cortex XDR tenant and for the entities and attributes you specify, it returns up to 1,000,000 results.

The **Query Builder** provides queries for the following types of entities:

* **Process**: Search on process execution and injection by process name, hash, path, command line arguments, and more. See [Create process query](#UUID-d4b20590-de41-217a-7e53-017b59b9a8f5).
* **File**: Search on file creation and modification activity by file name and path. See [Create file query](#UUID-f00a18fe-0b9e-db51-a844-09ec3ef50f97).
* **Network**: Search network activity by IP address, port, host name, protocol, and more. See [Create network query](#UUID-21491250-6de0-4323-a9b9-55846d093c20).
* **Image Load**: Search on module load into process events by module IDs and more. See [Create image load query](#UUID-3f0d8c22-b647-145e-ec59-698d9a78dc4e).
* **Registry**: Search on registry creation and modification activity by key, key value, path, and data. See [Create registry query](#UUID-30525edd-afa3-3d1c-60e4-9d64ce6c8ce2).
* **Event Log**: Search Windows event logs and Linux system authentication logs by username, log event ID (Windows only), log level, and message. See [Create event log query](#UUID-5dce157d-b851-d31f-ecd3-648773cc15ec).
* **Network Connections**: Search security event logs by firewall logs, endpoint raw data over your network. See [Create network connections query](#UUID-b7cbcdd5-cb02-8a32-378d-9c9670dbc06b).
* **Authentications**: Search on authentication events by identity, target outcome, and more. See [Create authentication query](#UUID-b93af69f-d407-8cc9-fe7b-6c4990f3e080).
* **All Actions**: Search across all network, registry, file, and process activity by endpoint or process. See [Query across all entities](#UUID-e28e376c-6bd2-cf9a-c1b6-e160c3c418f5).

The **Query Builder** also provides flexibility for both on-demand query generation and scheduled queries.


---

# 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-xdr-5.x/reference-and-developer-docs/cortex-xdr-xql/build-xql-queries/legacy-query-builder.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.
