Hi team,
I'm exploring options to fetch user login audit logs for extended periods such as the last 3 months, 6 months, or 1 year.
Currently, I only see daily login audit data available. Is there a more efficient or consolidated approach to retrieve historical login activity over longer durations?
Any guidance or best practices from the community would be appreciated.
Discussion posts and replies are publicly visible
System login data logs accessible via getLastLoginDateTime(), retain information for about 30 days by default. For historical login data beyond this period, it’s best to implement a custom process that extracts login info daily and stores it in a database table for long-term tracking.
Check your environment’s log retention settings, as exact retention durations may vary.