Skip to content

CloudWatch RUM retention period modification

0

I am creating a dashboard for user's activity logging in AWS cloud watch RUM, If I use cloud watch log groups with cloud watch RUM and change the retention period for cloud watch group to 2 years, will the RUM dashboard shows 2 years data?

asked a year ago447 views

1 Answer
0

CloudWatch RUM data is retained for 30 days by default and then automatically deleted. If you want to keep the RUM events for a longer period, such as 2 years, you can configure the app monitor to send copies of the events to CloudWatch Logs in your account.

When you set up this integration with CloudWatch Logs, you can then adjust the retention period for that specific log group to 2 years (731 days). However, it's important to understand that while the raw event data will be stored in CloudWatch Logs for the extended period, the pre-built RUM dashboard will still only display the last 30 days of data.

The CloudWatch Logs retention feature will keep the log events based on your specified retention policy, but this doesn't extend the visualization period of the RUM dashboard itself. You would need to build custom dashboards or queries to visualize the historical data stored in CloudWatch Logs beyond the 30-day window.

When setting custom retention periods for CloudWatch Logs, valid values include 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731 (2 years), 1827, and 3653 days.
Sources
CloudWatch RUM - Amazon CloudWatch
Altering CloudWatch log retention - AMS Advanced User Guide
cw-loggroup-retention-period-check - AWS Config

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.