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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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