By default, ActionTrail allows you to query events recorded in the last 90 days.

If you want to store event logs for a longer period of time and query them later, you can create trails in the ActionTrail console. ActionTrail will deliver the events to the Object Storage Service (OSS) bucket or the Log Service Logstore that you specify or create. For more information, see Create a trail.