I am configuring site auditing via CSOM. Most of this is easily done via code. The one piece I cannot figure out, is how to set the document library where the audit reports are stored before trimming occurs.
This is a sample of how I am setting the audit settings so far.
using (var context = this.sharePointOnlineAuthenticationHelper.GetClientContextWithAccessToken(siteUri.ToString(), siteToken)) { var site = context.Site; context.Load(site, s => s.Audit, s => s.AuditLogTrimmingRetention, s => s.TrimAuditLog); context.ExecuteQuery(); site.TrimAuditLog = true; site.Audit.AuditFlags = AuditMaskType.All; site.Audit.Update(); context.ExecuteQuery(); } Can anyone provide any insight on how to set the document library where the audit reports are stored before trimming occurs?