> 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-xsiam/insights-and-tips-cortex-xsiam/data-and-platform-administration/data-retention.md).

# Data retention

Learn about Cortex XSIAM data retention periods, storage tiers, lifecycle options, and ways to manage retention costs.

### Default retention

| Data type                        | Default retention |
| -------------------------------- | ----------------- |
| Ingested data (hot storage)      | 31 days           |
| Cases and issues                 | 186 days          |
| Agentic AI chats and artifacts   | 186 days          |
| Forensic data (Forensics add-on) | 365 days          |
| Management audit logs            | 365 days          |
| Query data                       | 186 days          |

### Storage tiers

| Tier                             | Use it for                                                       | Searchable                                       |
| -------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------ |
| **Hot storage** (Analytics tier) | Active detection, investigation, and hunting                     | Yes, fully, with analytics                       |
| **Cold storage**                 | Long-term retention for compliance and historical investigations | Yes, with XQL queries that consume compute units |
| **Cortex Data Lake tier**        | High-volume data that doesn't need real-time analytics           | Yes, with XQL. Correlation rules are supported.  |

Data automatically moves through the lifecycle you purchase. Data is written to cold storage on ingestion and becomes accessible there when its hot retention period ends. Cold storage requires a minimum of six months and must be in place from the start; data that was never sent to cold storage cannot be added later.

### Extend retention

* **Period-Based Retention – Hot Storage:** Extend hot retention for all datasets in monthly increments.
* **Additional Hot Storage:** Extend retention for selected datasets (minimum 1,000 GB). Set the retention plan for each dataset in **Dataset Management**.
* **Period-Based Retention – Cold Storage:** Lower-cost, long-term retention (minimum six months).
* **Additional Cases and Issues retention.**

### Optimize cost for high-volume data

* Route high-volume, low-value data to the [Cortex Data Lake tier](https://cortex-docs.paloaltonetworks.com/cortex-xsiam/configure-cortex-xsiam/data-management/configure-cortex-data-lake-tier.md).
* Filter or drop unneeded fields and events with parsing rules before ingestion.
* Apply longer retention only to the datasets that need it.

See [Data retention](https://cortex-docs.paloaltonetworks.com/cortex-xsiam/learn-about-cortex-xsiam/cortex-xsiam-product-licenses/data-retention.md), [Data storage lifecycle](https://cortex-docs.paloaltonetworks.com/cortex-xsiam/learn-about-cortex-xsiam/cortex-xsiam-product-licenses/data-storage-lifecycle.md), and [Dataset management](https://cortex-docs.paloaltonetworks.com/cortex-xsiam/configure-cortex-xsiam/data-management/dataset-management.md).

{% hint style="info" %}
Make retention changes while your current license is active. Data that has passed its retention period is purged and can't be recovered.
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xsiam/insights-and-tips-cortex-xsiam/data-and-platform-administration/data-retention.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
