As far as I know, the official provides ready-made functions to view audit log reports
Here are some links for your reference:
View audit log reports:
Access the SharePoint Online audit logs:
Configure audit data for a site collection:
Hope these are helpful!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards
Cheng Feng