Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

SharePoint Audit Report using Power BI

Hello,

 

I am trying to built an audit report for SharePoint online site collection. I am not sure which data source I need to connect to get site specific audit data.

 

Please note this is for a specific site collection, not for all site collection under SP tenant.

 

Thanks,

JD 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

You may want to be a bit more specific as to what audit data you are after.  Here's an example of how to get document level audit data via Powershell

https://social.technet.microsoft.com/wiki/contents/articles/23900.sharepoint-get-audits-for-a-docume...

 

Here's another one that allows you to search for specific entries

https://www.codetwo.com/admins-blog/enable-view-sharepoint-online-logs/

View solution in original post

edhans
Community Champion
Community Champion

You can't connect directly to the audit logs via Power Query that I am aware of. You will need to connect to CSV exports. As @lbendlin indicated, you can do this via Power Shell. You can also manually export the logs via the Audit Log search tool at protection.office.com for your tenant and filter for SharePoint.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

2 REPLIES 2
edhans
Community Champion
Community Champion

You can't connect directly to the audit logs via Power Query that I am aware of. You will need to connect to CSV exports. As @lbendlin indicated, you can do this via Power Shell. You can also manually export the logs via the Audit Log search tool at protection.office.com for your tenant and filter for SharePoint.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
lbendlin
Super User
Super User

You may want to be a bit more specific as to what audit data you are after.  Here's an example of how to get document level audit data via Powershell

https://social.technet.microsoft.com/wiki/contents/articles/23900.sharepoint-get-audits-for-a-docume...

 

Here's another one that allows you to search for specific entries

https://www.codetwo.com/admins-blog/enable-view-sharepoint-online-logs/

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.