---
title: Managed Archive
description: >-
  Store all ingested RUM sessions and recover specific sessions for full
  investigation when needed.
breadcrumbs: Docs > RUM & Session Replay > Managed Archive
---

# Managed Archive

## Overview{% #overview %}

Datadog's [RUM without Limits](https://docs.datadoghq.com/real_user_monitoring/rum_without_limits.md) provides an accurate, long-term overview of application health and performance, even if only a fraction of session data is retained by retention filters. But any session can be useful to solve an unexpected support ticket, perform a compliance audit, or conduct a retroactive investigation.

RUM Managed Archive acts as a **safety net**, enabling teams to:

- **Store everything**: Store all sessions for several months automatically
- **Recover on demand**: Bring back specific sessions for full investigation
- **Investigate in depth**: Explore recovered sessions like regularly retained sessions

Common use cases include:

- Recovering a session not captured by retention filters to resolve a customer support ticket
- Auditing sessions from a specific time window to meet compliance or internal mandates
- Investigating sessions retroactively after a production incident or regression
- Extending session retention for longer investigation without the pressure to lose data

## How it works{% #how-it-works %}

After you enable Managed Archive, all ingested sessions (excluding Synthetic Monitoring sessions) are stored automatically for the configured storage period. These sessions are accessible in a dedicated **Managed Archive UI**, separate from the [RUM Explorer](https://docs.datadoghq.com/real_user_monitoring/explorer.md).

{% image
   source="https://docs.dd-static.net/images/real_user_monitoring/managed_archive/managed_archive_ui.bc15cadd5553c2e59450ec078eece0c1.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/real_user_monitoring/managed_archive/managed_archive_ui.bc15cadd5553c2e59450ec078eece0c1.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The Managed Archive UI showing a table of stored sessions with light-indexed attributes" /%}

All stored sessions, including sessions retained by retention filters or already recovered, are shown in the Managed Archive UI. A set of session tags and attributes are available to help you navigate and identify sessions to recover:

| Attribute           | Description              |
| ------------------- | ------------------------ |
| `@account.id`       | Account ID               |
| `@application.id`   | RUM application ID       |
| `@session.id`       | Unique session ID        |
| `@timestamp`        | Timestamp of the session |
| `@usr.anonymous_id` | Anonymous user ID        |
| `@usr.id`           | User ID                  |
| `country`           | Country of the session   |
| `service`           | Service name             |
| `version`           | Application version      |

Once a session is recovered, the corresponding row in the Managed Archive UI is visually marked and the session becomes available in the RUM Explorer.

## Permissions{% #permissions %}

Access to Managed Archive and Recovery is controlled through role-based access control (RBAC):

| Permission           | Capability                                                                                                        | Default Role |
| -------------------- | ----------------------------------------------------------------------------------------------------------------- | ------------ |
| `rum_recovery_read`  | View the Managed Archive configuration and stored sessions, but cannot edit the configuration or recover sessions | Admin        |
| `rum_recovery_write` | Turn session storage on or off for an application                                                                 | Admin        |
| `rum_recovery_index` | Recover sessions                                                                                                  | Admin        |

## Setup{% #setup %}

{% alert level="info" %}
To use this feature, your organization must use [RUM without Limits](https://docs.datadoghq.com/real_user_monitoring/rum_without_limits.md).
{% /alert %}

To enable session storage for an application:

1. In Datadog, navigate to **Digital Experience > Real User Monitoring > Manage Applications**.
1. Select your application.
1. Go to **Routing > Managed Archive**.
1. Toggle **Enable Managed Archive** on and select the storage period.

{% image
   source="https://docs.dd-static.net/images/real_user_monitoring/managed_archive/managed_archive_setup.aee72d56516e7425cbe3432ac41aa84d.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/real_user_monitoring/managed_archive/managed_archive_setup.aee72d56516e7425cbe3432ac41aa84d.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The Managed Archive configuration panel showing the Store sessions toggle" /%}

{% alert level="info" %}
It takes 24 hours for a newly ingested session to appear in the Managed Archive.
{% /alert %}

Configuration is done at the application level, which means you can apply different storage strategies per application.

## Recover sessions{% #recover-sessions %}

In the Managed Archive UI, click **Recover** on the row of the session you want to recover.

Recovered sessions are available for 30 days with all their events and attributes. Recovered sessions have the same investigation capabilities as sessions retained by a retention filter

After recovering a session, find it in the RUM Explorer by querying on:

- `@session.retention_reason:recovery`
- `@session.matching_retention_filter.name:recovery`
- `@session.matching_retention_filter.id:recovery`

Recovered sessions that were initially retained by a retention filter have `@session.was_retained:true`.

## Further reading{% #further-reading %}

- [RUM Explorer](https://docs.datadoghq.com/real_user_monitoring/explorer.md)
- [RUM without Limits](https://docs.datadoghq.com/real_user_monitoring/rum_without_limits.md)
