To find your security log and see who has been trying to log into your Microsoft account in the last 30 days, you can check the Sign-in logs in Microsoft Entra ID. This log provides information about sign-in activities associated with users, applications, and service principals. You can access these logs through the Azure portal.
Additionally, if you have a Microsoft Entra ID P1 or P2 license, you can retain sign-in data for up to 30 days. If you're using the free version, the data is available for up to 7 days.
You can download a sign-in report in either CSV or JSON format for further analysis.
References: