# Data Retention Difference between Metrics and RUM User Sessions

**URL:** <https://community.dynatrace.com/t/data-retention-difference-between-metrics-and-rum-user-sessions/38553>\
**Category:** Open Q&A\
**Tags:** real-user-monitoring-classic, dynatrace-managed\
**Created:** [February 23, 2023, 6:32am UTC](https://community.dynatrace.com/t/data-retention-difference-between-metrics-and-rum-user-sessions/38553 "2023-02-23T06:32:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abnerlusung](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@abnerlusung](https://community.dynatrace.com/u/abnerlusung)\
**Post date:** [February 23, 2023, 6:32am UTC](https://community.dynatrace.com/t/data-retention-difference-between-metrics-and-rum-user-sessions/38553/1 "2023-02-23T06:32:48Z")

</div>

Hello,

I’m looking for answers for these questions.

How come RUM User Sessions has 35 days while metric has 5 years?

> **[Data retention periods](https://docs.dynatrace.com/docs/manage/data-privacy-and-security/data-privacy/data-retention-periods)**
>
> Check retention times for various data types.

Are they not pulling data from the same table?  
Example:

select bounce from usersession

builtin:app.web.bouncedSessionRatio

Thanks,

Abner

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Al3x](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_al3x/32/36257_2.png) [@Romanenkov\_Al3x](https://community.dynatrace.com/u/Romanenkov_Al3x)\
**Post date:** [February 23, 2023, 11:18am UTC](https://community.dynatrace.com/t/data-retention-difference-between-metrics-and-rum-user-sessions/38553/2 "2023-02-23T11:18:19Z")

</div>

Hello.

It can be simplified with that there are two storages. One for operation data, another - long-therm storage.

First is ElasticSerach, second is Cassandra DB.

For example you have create User session. You go to the instrumented site and do some work, for example three user actions. All of these user actions are now in ElasticSearch in JSON as separate objects.

Dynatrace do some background work and got some metrics for long therm for these objects.&nbsp; After 35 days when infromation will gone (3 user actions will be deleted) from ElasticSerach we still have metrics from long-therm storage - Cassandra.

This is only an example of work. The engine works much more difficult as I described.

Regards,

Romanenkov Alex

---

<div class="post-metadata">

**Author:** ![abnerlusung](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@abnerlusung](https://community.dynatrace.com/u/abnerlusung)\
**Post date:** [February 27, 2023, 9:01am UTC](https://community.dynatrace.com/t/data-retention-difference-between-metrics-and-rum-user-sessions/38553/3 "2023-02-27T09:01:58Z")

</div>

Hi&nbsp;Romanenkov Alex,

Does this metrics includes the USQL custom metrics?

> **[Data retention periods](https://docs.dynatrace.com/docs/manage/data-privacy-and-security/data-privacy/data-retention-periods)**
>
> Check retention times for various data types.

Regards,

Abner

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [February 27, 2023, 9:08am UTC](https://community.dynatrace.com/t/data-retention-difference-between-metrics-and-rum-user-sessions/38553/4 "2023-02-27T09:08:42Z")

</div>

Yes, it should.
