如何在sharepoint CSOM上获取审核日志

问题描述

嗨,我想通过CSOM获得审计日志的价值。那是可能的吗?而不是通过爬网网站下载该文件。因此我可以制作一些API以返回审计日志的价值。

当我尝试这个 https://sharepoint.stackexchange.com/questions/248948/site-collection-audit-settings-for-sp-online-using-csom

这是我无法获得的价值,它只能保存到路径中。

如何获取审核日志的价值

解决方法

据我所知,CSOM无法获得审核日志。 enter image description here https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/8967484-microsoft-sharepoint-client-auditquery-in-csom

您只能使用CSOM配置审核日志。