SharePoint Server auditing: do the auto-generated Excel reports mirror the data in the SQL AuditData table?

Green Arrow 41 Reputation points

I have a question about auditing in SharePoint Server 2016 (and higher):

Do the AuditTable table in the content databases in SQL and the auto-generated Excel reports contain the same data?

Or put another way: I am trying to understand if I will lose any information if I enable audit log trimming and just keep the automatically generated (Excel) reports? (I have examined the AuditTable and I think it looks like the Excel reports contain exactly the same data, but I am not sure...)

Thanks for any input!

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,702 questions
0 comments No comments
{count} votes

Accepted answer
  1. Trevor Seward 11,661 Reputation points

    The output is formatted slightly differently than the AuditData table, but the content is identical. Note that querying the AuditData table directly is not supported.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Yi Lu_MSFT 17,361 Reputation points

    Hi @Green Arrow
    About audit log trimming, the default setting for retaining audit log data is zero days, that means if you don't specify a different retention period, all audit log entries are deleted at the end of the month (in the content databases in SQL). In addtion, we can also specify the document library to save audit log reports to before the audit log data is trimmed. Set this option if you need access to audit log data, using audit log reports, after the audit log has been trimmed:


    For better understanding, you could refer to these two simialr case:

    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.

    1 person found this answer helpful.