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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
BindiyaThota
Helper I
Helper I

Power BI Gateway Monitoring

Hi,

I am going through the gateway monitoring solution provided by Rui Romano, especially using disk template i.e. "Gateway Monitor - FromDisk.pbit". I also watched his video regarding the same (great content, BTW!). At about 20 minutes into the video, he explained how "DataLocation" parameter in the PBIT should point to folder path of gateway log export.

 

We usually export gateway logs from server on a monthly basis by passing the month start and end dates. I.e. open on-premises data gateway > "Diagnostics" tab > pass the "from" and "to" dates > click on "Export Logs" and copy the exported logs from gateway server to, say, my local machine (in below hierarchical folder structure). We have multiple gateway servers and do the same for each server. 

 

Hierarchical folder structure: \Documents\AllGateways\<one folder per gateway>\<one folder per month>\<all exported logs>

Example:

 \Documents\AllGateways\Gateway1\Sep2024\<all exported logs>

 \Documents\AllGateways\Gateway1\Oct2024\<all exported logs>

 \Documents\AllGateways\Gateway2\Sep2024\<all exported logs>

 \Documents\AllGateways\Gateway2\Oct2024\<all exported logs>

 

Questions

If I want the PBIT to consider all historical data for all gateways, then

  1. Will pointing PBIT to " \Documents\AllGateways" location consider all gateways?
  2. Should the hierarchical folder structure contain all monthly exports per gateway or just the latest export?
  3. Is exporting logs once a month (by passing first of month and last of month for "from" and "to" dates) good or should the cadence or date range be changed?

 

Any suggestions are much appreciated. Thanks! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi , @BindiyaThota 

Firstly, regarding your question about whether pointing the PBIT to the '\Documents\AllGateways' location will consider all gateways, I believe it is theoretically feasible. If you set the 'DataLocation' parameter to '\Documents\AllGateways', it should include all subfolders within that directory. This means that as long as the log files are organised in their respective folders, it will encompass logs from all gateways.

However, in my tests, my default input location was:

C:\Windows\ServiceProfiles\PBIEgwService\AppData\Local\Microsoft\On-premises data gateway

Secondly, regarding your second question: if you want to analyse historical data, ideally, a hierarchical folder structure should include all monthly exports for each gateway. This way, you can track performance and issues over time.

 

Thirdly, exporting logs monthly is a good method for regular monitoring. However, if you encounter frequent issues or need more granular data, consider exporting logs more frequently, such as weekly. The date range should cover the entire period you want to analyse, so monthly exports with the first and last day of each month as the range are suitable for monthly monitoring.

 

Finally, if parameter input fails, you can refer to the following content:

vlinyulumsft_0-1732780159742.png

The above are my personal opinions. If you have further questions, I recommend contacting the author directly, as they can provide more professional assistance.

RuiRomano (Rui Romano) · GitHub

 

Of course, if you have different opinions or new ideas, we welcome you to share them with us. I will always maintain a humble attitude and encourage you to post any further progress on this issue here.

 

Best Regards,

Leroy Lu

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
ChuckS
Helper I
Helper I

I came here looking for guidance on using the disk template provided by Rui Romano. I suspect changes in the gateway logs are creating errors within the template. Getting a lot of null to text errors as well as the JSON layout of the logs seems brocken. It looks as though the template has not been updated in a year.

Has anyone continued the work on this template or is there an alternative project out there?

Thanks,
Chuck

Anonymous
Not applicable

Hi , @BindiyaThota 

Firstly, regarding your question about whether pointing the PBIT to the '\Documents\AllGateways' location will consider all gateways, I believe it is theoretically feasible. If you set the 'DataLocation' parameter to '\Documents\AllGateways', it should include all subfolders within that directory. This means that as long as the log files are organised in their respective folders, it will encompass logs from all gateways.

However, in my tests, my default input location was:

C:\Windows\ServiceProfiles\PBIEgwService\AppData\Local\Microsoft\On-premises data gateway

Secondly, regarding your second question: if you want to analyse historical data, ideally, a hierarchical folder structure should include all monthly exports for each gateway. This way, you can track performance and issues over time.

 

Thirdly, exporting logs monthly is a good method for regular monitoring. However, if you encounter frequent issues or need more granular data, consider exporting logs more frequently, such as weekly. The date range should cover the entire period you want to analyse, so monthly exports with the first and last day of each month as the range are suitable for monthly monitoring.

 

Finally, if parameter input fails, you can refer to the following content:

vlinyulumsft_0-1732780159742.png

The above are my personal opinions. If you have further questions, I recommend contacting the author directly, as they can provide more professional assistance.

RuiRomano (Rui Romano) · GitHub

 

Of course, if you have different opinions or new ideas, we welcome you to share them with us. I will always maintain a humble attitude and encourage you to post any further progress on this issue here.

 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

BindiyaThota
Helper I
Helper I

Is any one able to successfuly implement "disk template" by pointing to just one export from one gateway? I am running into errors when I try to load data.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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