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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
rizwan_naseer
New Member

Using audit logs and power shell to track usage of reports viewed from either desktop or bi service

I need to come up with a method on tracking usage of reports we build for our clients. I am hoping to use power shell to automate retrieval of audit logs. Then used a scheduled task to email these logs to us. (All with agreement with the client of course).

 

1. Does this method work for both reports viewed through the desktop application and Power BI service? We will be using direct query so the database will reside on a server machine in the client's network.

 

2. Is there a better way to achieve what I want?

 

If you just want to point me to some documentation that would be great. Thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@rizwan_naseer,

The method you describe can only work for reports viewed through Power BI Service. Auditing is a feature in Power BI Service, it is not available for Power BI Desktop. To automate retrieval of audit logs using PowerShell, you can review the official article below to get more details.

https://powerbi.microsoft.com/en-us/documentation/powerbi-admin-auditing/

In addition, I haven't found any other better methods to automate retrieval of audit logs.

Regards,
Lydia

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@rizwan_naseer,

The method you describe can only work for reports viewed through Power BI Service. Auditing is a feature in Power BI Service, it is not available for Power BI Desktop. To automate retrieval of audit logs using PowerShell, you can review the official article below to get more details.

https://powerbi.microsoft.com/en-us/documentation/powerbi-admin-auditing/

In addition, I haven't found any other better methods to automate retrieval of audit logs.

Regards,
Lydia

Thank you for the reply. I just have one follow up question. Is there any way through MSBI that I can track usage of reports viewed through the desktop application. Even if it is something that is present on the client computer  (where the desktop app is used) I could then figure out some way to obtain it. The dataset they connect to will be on a different server (I doubt that will make a difference but thought I would let you know)

Anonymous
Not applicable

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.