How to Generate OneDrive Audit Logs: Admin Guide
Question details
Administrators need to create and review audit logs for OneDrive activity to monitor file access, sharing, downloads, and deletions.
- Product
- OneDrive / Microsoft Purview
- Device & OS
- not provided
- Scenario
- Tracking and reviewing user activities for compliance and security monitoring.
- Observed behavior
- Generating a comprehensive audit log report of OneDrive activities within a specific date range.
Ensure you have the required audit or compliance administrator permissions assigned in your Microsoft 365 organization before attempting to access the Microsoft Purview portal.
Generate Audit Logs via Microsoft Purview Portal
Use the unified Audit tool in Microsoft Purview to track OneDrive and SharePoint activities across your organization.
The Microsoft Purview portal provides a centralized location for compliance administrators to search the unified audit log. This log contains records of user and administrator activities across your Microsoft 365 services, including detailed OneDrive events.
Sign in to the Microsoft Purview compliance portal using an administrator account with the necessary audit or compliance permissions.
On the left navigation pane, locate and select the 'Audit' tab to open the audit log search tool.
Choose the appropriate date and time range for your search. Under the 'Activities' dropdown, select the specific file and folder actions you want to track, such as accessed, downloaded, or deleted files.
Set the workload filter to 'OneDrive' and 'SharePoint' to narrow down the results. You can also specify certain users or site URLs if needed.
Click 'Search' to generate the log. Once the search completes, click 'Export' to download the results as a CSV file for detailed analysis.
Looking for a fast, cost-effective alternative to Microsoft Office?
While Microsoft Purview handles complex enterprise compliance for OneDrive, many users simply need a reliable, lightweight suite for daily document editing. WPS Office offers a free, highly compatible alternative to Microsoft Office with built-in integration for cloud storage providers.
- 1. Download and Install: Download WPS Office for free from the official website and install it on your computer or mobile device.
- 2. Connect Cloud Storage: Open WPS Office, go to the 'Open' menu, and select 'Add Cloud Storage' to securely link your OneDrive account.
- 3. Edit Files Directly: Open, edit, and automatically save your Office documents directly back to your connected cloud drive without complex syncing processes.

Frequently Asked Questions
Who can generate OneDrive audit logs?
Only administrators who have been assigned specific Audit Logs or View-Only Audit Logs roles in the Microsoft Purview portal can generate and view these security logs.
How long does it take for OneDrive activities to appear in the audit log?
Most OneDrive and SharePoint activities typically appear in the unified audit log within 15 to 30 minutes of the event occurring, though it can occasionally take up to 24 hours depending on the Microsoft tenant load.
Can I track when a specific file was downloaded in OneDrive?
Yes, by filtering the audit log search activities to 'Downloaded file' and specifying the file name or URL in the search criteria, you can track exactly when and by whom the file was downloaded.
Why is my audit log search returning no results for OneDrive?
Ensure that unified audit logging is actively turned on for your Microsoft 365 organization. If it was recently enabled, it may take a few hours before new events are recorded and become searchable.




