Using the Data retention UI page, review and manage how long your data will be stored in the New Relic database (NRDB). Keep data for shorter periods to protect sensitive information or for longer periods to notice trends over time. At a glance, get the sources of data that you’re storing, when they were last updated, and the length the data is stored. Retention settings range from 8 to 395 days depending on the data source and the namespace.
![Edit data retention page screenshot of data retention page](/static/edit_retention_settings-9f898e9b91a304c590fff84371b152d6.png)
From the data retention UI page, which shows the source of data, you can click Edit settings to adjust the data retention for each source.
Find the data retention UI
The Data retention tab is located in the Data management hub.
Retention periods
This table shows the default retention settings for the namespaces that are available for editing in the UI:
Data source | Event namespace | Days retained |
---|---|---|
APM | APM | 8 |
APM | APM errors | 8 |
Browser | Browser | 8 |
Browser | Browser events | 8 |
Browser | Browser JS errors | 8 |
Browser | Browser page view timing | 8 |
Custom events | Custom events | 30 |
Serverless | Lambda | 8 |
Serverless | Lambda custom | 8 |
Serverless | Lambda spans | 8 |
Logs | Log | 30 |
Infrastructure | Infrastructure processes (learn more) | 8 |
Infrastructure | Infrastructure integrations (learn more) | 395 (13 months) |
Mobile | Mobile crash event trails (breadcrumb) | 8 |
Mobile | Mobile exception | 8 |
Mobile | Mobile general | 8 |
Mobile | Mobile error | 8 |
Mobile | Mobile crash | 90 |
Mobile | Mobile session | 90 |
Synthetics | Synthetics data | 395 (13 months) |
Traces | Distributed traces | 8 |
Metrics and infrastructure data
Here are some details about how metrics and infrastructure data are stored and retained:
Edit retention values
We let you adjust the retention periods for some types of data. For example, you might reduce your retention values for your APM data to optimize the performance of your querying of that data. Conversely, you might increase retention for some data types so that you can do more granular analysis over longer time ranges, or to meet data compliance requirements.
For each additional month (30 days) of retention, the cost is $0.05 per GB ingested per month.
Requirements for editing retention
Pricing model-related requirements:
- New Relic One pricing model: requires Pro or Enterprise edition to edit retention.
- Original pricing model: requires Insights Pro to edit retention.
The ability to edit data retention is impacted by which user model a user is on:
- New Relic One user model: requires the Billing user role.
- The original user model: requires role of Owner, Admin, or the Data retention manager add-on role.
Reduce retention values
When you reduce the number of days that specific data sources are retained, existing data of that source type won't immediately disappear. That data might be visible and returned in queries for up to several weeks. We have safeguards in place to ensure you don't accidentally delete data, but this also means that reducing retention values isn't a good strategy for quickly removing data.
That said, your change is registered in the system within 12 hours and new data of the adjusted source type will be retained for the new duration.
Note that reducing data retention below your contracted retention values will not reduce any New Relic data ingest charges. Conversely, increasing retention for targeted telemetry data types is likely to trigger a conversation with New Relic about adjusting your data ingest charges.
Copy retention values
If you have multiple accounts in your organization, you can also copy retention values from one account to other accounts. To do this, select the Copy settings to other accounts link, and then select the accounts you want to apply the retention values to.
![Copy retention values image of child accounts to copy retention values to](/static/copy-data-retention-83bbe1ed790ac94f36e4949e740c6048.png)
Select the accounts you want to copy retention values to.
Deleting data
Once telemetry data (events, metrics, logs, traces) is reported to New Relic and available for querying, that data cannot be edited or deleted. This is a purposeful design decision that optimizes New Relic's speed and performance. Data will expire after its data retention period ends. If you need to delete data that has already been reported, contact your New Relic representative.
Manage retention via API
You can change your retention settings with NerdGraph as well as the UI. For the following examples, provide any necessary information, and run the code in the NerdGraph GraphiQL explorer.
Your retention changes take effect within 24 hours after updating.
Account inheritance
The data retention settings of a parent account are inherited by its children accounts. In this context, an organization's first account is treated as the parent account, and other accounts added to the organization inherit the settings in that account. You also have the option to override those settings and set account-specific data retention settings.
RSS - Atom
Subscribe to the RSS feed.