> 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/onboard-cortex-xdr/deployment-steps/configure-xdr-analytics.md).

# Configure XDR Analytics

The Cortex XDR Analytics engine enables Cortex XDR to analyze data from a variety of sensors and develop a baseline to raise analytics alerts when anomalies and malicious behaviors are detected.

{% hint style="warning" %}

### Prerequisite

Before Cortex XDR - Analytics can start to analyze your endpoint data, perform the following steps:

1. Configure Cortex XDR network parameters to monitor your internal networks.
2. Enable the Analytics Engine.
3. Make sure Cloud Identity Engine is set up.
4. Enable Identity Analytics.
   {% endhint %}

### Configure Cortex XDR network parameters

Define your internal IP address ranges and domain names to enable Cortex XDR to identify, track, and analyze network assets.

#### Define internal IP address ranges

The **IP Address Ranges** page displays the address ranges that Cortex XDR Analytics monitors. Addresses are pre-populated with the default IPv4 and IPv6 address spaces. The names you define appears when investigating the network-related events in Cortex XDR.

You can add a new IP address range manually or upload IP address ranges from a CSV file.

**Define internal IP address ranges**

1. Select **Inventory** → **Assets** → **Network Configuration** → **Internal IP Address Ranges**.
2. Do one of the following:

   | To                                       | Do this                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
   | ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | Add a new IP address manually            | <p>1. Click <strong>Add New Range</strong> → <strong>Create New</strong>, and then enter the IP address name and IP address range or CIDR values.</p><p>By default, Cortex XDR creates Private Network ranges that specify reserved industry-approved ranges. Private Network ranges are marked with a <img src="/files/Cd6L4IDuZ2T9LwtaWJdN" alt="assets-private-network.png"> icon and you can only edit the name.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>You can add a range that is fully contained in an existing range, however, you cannot add a new range that partially intersects with another range.</p></div><p>2. Click <strong>Save</strong>.</p> |
   | Upload IP address ranges from a CSV file | <p>1. Select <strong>Inventory</strong>+Assets → Network Configuration → <strong>IP Address Ranges</strong>.</p><p>2. Click <strong>Add New Range</strong> → <strong>Upload from File</strong>.</p><p>3. Locate the CSV file you want to upload, and then click <strong>Add</strong>.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

#### Define internal domain names

1. Select **Inventory** → **Assets** → **Network Configuration** → **Internal Domain Suffixes**.
2. Type the domain suffix you want to include as part of your internal network, for example, **`acme.com`**.
3. Select ![network-mapper-enter.png](/files/RNCthazLF4uXPgRF4xOg) to add the suffix to the **Domains List**.

### Enable the Analytics Engine and Identity Analytics

Cortex XDR - Analytics includes the following:

* **Cortex XDR Analytics Engine:** Analyzes your endpoint data to develop a baseline and raise Analytics and Analytics BIOC alerts when anomalies and malicious behaviors are detected.
* **Identity Analytics:** Allows the Cortex XDR Analytics engine to aggregate and display user profile details, activities, and alerts related to a user-based Analytics type alert and Analytics BIOC rule during an investigation.

{% hint style="warning" %}

### Prerequisite

**Analytics Engine**

To create a baseline for enabling analytics, Cortex XDR requires a minimum of one of the following data sets:

* EDR or Network logs from at least 30 endpoints over a minimum of 2 weeks
* Cloud audit logs over a minimum of 5 days

**Identity Analytics**

* Cortex XDR - Analytics must be activated.
* Cloud Identity Engine must be set up. For more information, see [Cloud Identity Engine](/cortex-xdr-5.x/onboard-cortex-xdr/deployment-steps/set-up-cloud-identity-engine.md).
  {% endhint %}

#### Enable analytics

1. Select **Settings** → **Configurations** → **Cortex XDR - Analytics**.
2. Click **Enable**. Creating a baseline can take up to three hours.

   Adding Windows DHCP logs can enhance the Analytics Engine. For more information, see Ingest Windows DHCP Logs with an XDR Collector Profile.
3. Activate **Identity Analytics** by turning on the toggle.


---

# 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/onboard-cortex-xdr/deployment-steps/configure-xdr-analytics.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.
