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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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)

@rizwan_naseer,

You may need to use Windows auditing feature.

http://www.techotopia.com/index.php/Auditing_Windows_Server_2008_File_and_Folder_Access

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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