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

Green Arrow 51 Reputation points
2022-03-31T10:24:34.753+00:00

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,971 questions
0 comments No comments
{count} votes

Accepted answer
  1. trevorseward 11,711 Reputation points
    2022-04-01T23:28:52.903+00:00

    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,591 Reputation points
    2022-04-01T10:16:41.767+00:00

    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:

    189117-image.png

    For better understanding, you could refer to these two simialr case:
    https://learn.microsoft.com/en-us/answers/questions/363002/sharepoint-2019-onprem-site-collection-audit-setti.html
    https://learn.microsoft.com/en-us/answers/questions/261975/sharepoint-audit-log-trimming.html?page=1&pageSize=10&sort=oldest


    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.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.