> 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/detect-investigate-and-respond-to-threats/investigate-and-respond-to-cases/build-xql-queries/legacy-query-builder/query-across-all-entities.md).

# Query across all entities

From the **Query Builder** you can perform a simple search for hosts and processes across all file events, network events, registry events, process events, event logs for Windows, and system authentication logs for Linux.

Some examples of queries you can run across all entities include:

* All activities on a host
* All activities initiated by a process on a host

### How to build a query

1. From Cortex XDR, select **Investigation & Response** → **Search** → **Query Templates**.
2. Select **All Actions**.
3. (Optional) Limit the scope to a specific acting process:

   Select Add Process to your search, and specify one or more of the following attributes for the acting (parent) process. Use a pipe (|) to separate multiple values. Use an asterisk (\*) to match any string of characters.

   | Field                                          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
   | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | NAME                                           | Name of the parent process.                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
   | PATH                                           | Path to the parent process.                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
   | CMD                                            | Command line used to initiate the parent process including any arguments, up to 128 characters.                                                                                                                                                                                                                                                                                                                                                                                                   |
   | MD5                                            | MD5 hash value of the parent process.                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
   | SHA256                                         | SHA256 hash value of the process.                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
   | USER NAME                                      | User who executed the process.                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
   | SIGNATURE                                      | Signing status of the parent process: Signed, Unsigned, N/A, Invalid Signature, Weak Hash.                                                                                                                                                                                                                                                                                                                                                                                                        |
   | SIGNER                                         | Entity that signed the certificate of the parent process.                                                                                                                                                                                                                                                                                                                                                                                                                                         |
   | PID                                            | Process ID of the parent process.                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
   | Run search on process, Causality and OS actors | The causality actor, also referred to as the causality group owner (CGO), is the parent process in the execution chain that the agent identified as being responsible for initiating the process tree. The OS actor is the parent process that creates an OS process on behalf of a different initiator. By default, this option is enabled to apply the same search criteria to initiating processes. To configure different attributes for the parent or initiating process, clear this option. |
4. (Optional) Limit the scope to an endpoint or endpoint attributes:

   Select Add Host to your search and specify one or more of the following attributes:

   * HOST: HOST NAME, HOST IP address, HOST OS, HOST ADDRESS, or INSTALLATION TYPE.
   * INSTALLATION TYPE can be either an agent, or data collector.
   * PROCESS: NAME , PATH , CMD , MD5 , SHA256 , USER NAME , SIGNATURE, or PID.

     Use a pipe (|) to separate multiple values. Use an asterisk (\*) to match any string of characters.
5. Specify the time period for which you want to search for events.

   Options are Last 24H (hours), Last7D (days), Last1M (month), or select a Custom time period.
6. Choose when to run the query.

   Select the calendar icon to schedule a query to run on or before a specific date or Run the query immediately and view the results in the Query Center.

   While the query is running, you can always navigate away from the page and a notification is sent when the query completes. You can also **Cancel** the query or run a new query, where you have the option to **Run only new query (cancel previous)** or **Run both queries**.
7. When ready, view the results in a query.


---

# 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/detect-investigate-and-respond-to-threats/investigate-and-respond-to-cases/build-xql-queries/legacy-query-builder/query-across-all-entities.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.
