- Newest
- Most votes
- Most comments
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
Relevant content
asked 3 years ago
asked 10 years ago
