web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Custom Audit Log Retention?

(0) ShareShare
ReportReport
Posted on by

Hi all,

Our organisation would like to retain the D365 Sales audit logs for more than the OOTB 30 days.

The doco suggests that is should be possible to set up a custom retention policy (https://docs.microsoft.com/en-us/power-platform/admin/audit-data-user-activity) but we can't find any such setting. The documentation suggests we could retain the logs for up to 100,000 days (we only want 90 though!).

Note that I'm talking about the logs you get via the "Audit Summary View", not the "Read Auditing" logs which seem to go to the Office 365 Security & Compliance Center.

3rd party product is acceptable, prefer an OOTB solution however.

Thanks everyone.

I have the same question (0)
  • Verified answer
    LuHao Profile Picture
    40,890 on at
    RE: Custom Audit Log Retention?

    Hi BigPhil,

    The audit in "Audit Summary View" will not be cleared automatically.

    Audit logs are stored in blocks.  Each block contains approximately 3 months of logs. You can only delete the oldest block and you cannot delete the block currently in use.

    Reference: https://www.qgate.co.uk/knowledge/managing-audit-logs-in-microsoft-dynamics-crm/

    For example, in my environment, I have audit logs from August 8th, so I have two audit log blocks.

    pastedimage1603958131998v1.png

    pastedimage1603958175702v2.png

    If I delete the first audit log block, then my audit log will start on October 1.

    pastedimage1603958316435v3.png

    pastedimage1603958330408v4.png

    In summary, you do not need to customize audit retention, unless you manually delete the log, the old log will not be automatically cleaned up.

  • Suggested answer
    Inogic Profile Picture
    651 on at
    RE: Custom Audit Log Retention?
    Hi,
    We have a productivity app for Dynamics 365 CRM and PowerApps named Click2Undo which enables users to view Audit history of a record as well as undo changes and restore records to its previous known state with just a single click. By default Click2Undo grids show audit history for last 30 days, but you can also manually set number of days for which you want to show history. In your case it is last 90 days.
    For more information, you can visit our website here.
    Let me know if you have any other queries.
    Thanks!
  • Community Member Profile Picture
    on at
    RE: Custom Audit Log Retention?

    This is good news on one hand, but also bad in that it is hard to justify without seemingly ANY supporting documentation. Most organisations have policies governing this kind of thing so I'm surprised it seems to be so poorly implemented and documented. I appreciate the answer, looks like we may have to just hope that Microsoft doesn't change this implementation!

  • LuHao Profile Picture
    40,890 on at
    RE: Custom Audit Log Retention?

    Hi BigPhil,

    Yes, the documentation on Audit is indeed factually incorrect. It looks like the current Audit Log retention mechanism follows the D365 OP, not the Power Platform.

    For Customer Engagement (on-premises), you may notice that auditing can significantly increase the size of the organization database over time. You can delete audit logs by going to Settings > Auditing > Audit Log Management. Additionally, you may want to stop auditing for maintenance purposes. Stopping auditing stops tracking for the organization during the period until auditing is started again. When you start auditing again, the same auditing selection is maintained that was previously used.

    However, based on past patterns in the documentation, certain features in the documentation that are not released in the current version are often features that will be implemented in future versions. You can think of the documentation as a feature plan, in other words, the Microsoft team is developing this feature, but its description is already published in the documentation.

    Of course, this is just my personal idea and does not represent any official opinion at all. Anyway, for now, you don't need to customize the review log retention.

    Also, if my answer helped you, please click on Yes under "Did this answer your question?".

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 117

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 117 Super User 2025 Season 2

#3
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 83

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans