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
guruprasathb
Regular Visitor

Power BI Log Files

There are quite few logs are generated by Power BI Services in the following folder (C:\Program Files\Microsoft Power BI Report Server\PBIRS\LogFiles). Is it possible to change the log file path? Thanks,
5 REPLIES 5
muchinski
Resolver II
Resolver II

You can set it on the "C:\Program Files\Microsoft Power BI Report Server\PBIRS\RSHostingService\config.json" file, changing the properties bellow for each executable:
"Logger.path": "..\\LogFiles\\",
"Dumper.path": "..\\LogFiles\\",

 

Please create a safe copy of this file bofore any change.

 

I was not able to find any official documentation regarding to this procedure. That would be nice if someone can complement the answer with a reference.

Hi,

 

I tried changing the value in config.json file and restarted the service. But it still creating in C:\ only.

 

"Logger.path": "E:\\LogFiles\\",
            "Dumper.path": "E:\\LogFiles\\",

 

Kindly advice.

 

 

Thanks,

 

Just noted this property in config.json file but still no luck.

 

"restartOnChangesTo": "Dumper.flags,Dumper.path,Dumper.preventIfContains,listenerUrl,Logger.path"

Still not able to come out of problem statement? Any other inputs!!

 

Thanks

PBIRS does maintain backward compatibility with older versions of SSRS, so this will still work: https://docs.microsoft.com/en-us/sql/reporting-services/report-server/report-server-service-trace-lo...

 

Having said that, the config in config.json should overlay that legacy config.  One thing to note about the config.json is that it is hierarchical.  So if you'd like to configure all processes to log to the same directory, it's best to do it in the top level config section, and then you can override that setting at the per-process level if necessary.

 

As an example, here's the first few lines of a config.json file that sets all of the processes' loggers to the c:\temp\logs directory:

 

 

{
    "Config":
    {
        "Logger.path": "C:\\temp\\logs\\",
        "Dumper.path": "C:\\temp\\logs\\",
        "ASPort": "5132",

...

...

 

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.