• Log in

View and manage data retention

With New Relic's Data retention UI page, you can review and manage how long different types of data are stored in the New Relic database (NRDB). Keep data for shorter periods to protect sensitive information and return queries faster, or keep it for longer periods to be able to see and analyze data and trends over a longer period.

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.

Requirements

This doc applies for organizations on our usage-based pricing model. For data retention for our original pricing model, see Original data retention.

The ability to edit data retention requires Pro or Enterprise edition.

Permission-related requirements:

Find the data retention UI

The Data retention UI page is located in the Data management hub.

Default retention periods

The best way to understand your New Relic data retention is to go to the Data retention UI page. One reason this is recommended is because your organization may have edited your settings and they may no longer be the default settings documented here.

This table shows the default namespace retention settings for organizations on our usage-based pricing model.

Data source

Namespace

Retention for original data option (days)

Retention for Data Plus (days)

APM

APM

8

98

APM

APM errors

8

98

Browser

Browser

8

98

Browser

Browser events

8

98

Browser

Browser JS errors

8

98

Browser

Browser page view timing

8

98

Custom events

Custom events

30

98

Serverless

Lambda

8

98

Serverless

Lambda custom

8

98

Serverless

Lambda spans

8

98

Logging

Logging

30

98

Infrastructure

Infrastructure processes (learn more)

8

8

Infrastructure

Infrastructure integrations (learn more)

395 (13 months)

395 (13 months)

Mobile

Mobile crash event trails (breadcrumb)

8

8

Mobile

Mobile exception

8

8

Mobile

Mobile general

8

8

Mobile

Mobile error

8

8

Mobile

Mobile crash

90

90

Mobile

Mobile session

90

90

Synthetic monitoring (not editable)

Synthetic data (not editable)

395 (13 months)

395 (13 months)

Traces

Distributed traces

8

8

Retention details for assorted data types

In this section are details about a few different types of data, including some data types that have retention settings that can't be changed.

Edit retention values

If you meet the requirements, you can increase 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 30 days of retention that is added to a namespace's default retention period, the cost is $0.05 per GB ingested per month.

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.

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

In addition to changing your retention settings in the UI, you can use our NerdGraph API. Some example NerdGraph requests are included below. Note that your data retention changes take effect within 24 hours after an update.

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.

Copyright © 2022 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.