Hi @fredy setiawan ,
You can only configure Audit log using CSOM, but you can't querying audit log using CSOM as audit API is not available via the Client Object Model. And this UserVoice has been rejected.
If you're using SP onpremise, you can have a try below alternative solutions:
Create classic web service or REST service using SSOM and host it into the server, so you can access Audit long in client-side:
Other useful link:
- https://www.codeproject.com/Articles/431342/Auditing-A-Built-in-Feature-of-SharePoint
- https://sharepoint.stackexchange.com/questions/45718/can-i-access-the-spauditquery-from-the-javascript-class-library
Best Regards,
Baker Kong
If an Answer is helpful, please click "Accept Answer" and upvote it.
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.