Configure log files for the on-premises data gateway (2024)

  • Article

There are three categories of service logs for an on-premises data gateway: information, error, and network. This categorization provides a troubleshooting experience that lets you focus on the specific area for an error or issue.

In order to check your logging configurations, take the following steps:

  1. Open the gateway configuration file Microsoft.PowerBI.EnterpriseGateway.exe.config, which by default should be located under \Program Files\On-premises data gateway.
  2. Before proceeding further, make a copy of this file just in case you need to restore it later.
  3. Locate the listener ApplicationFileTraceListener which is under system.diagnostics.

The following sections provide the configuration details per retention type, which depends on your gateway version.

Age based retention

Starting in February of 2023, the new age based retention concept within a gateway was introduced. This concept is the default retention type for new gateway installations.

For this retention type, there are two main aspects to consider (in order of precedence):

  • Maximum disk space to be consumed by gateway logs (GatewayInfo*.log, GatewayError*.log, GatewayNetwork*.log), with a default value of 5 GB.
  • Retention period in days, with a default value of 30 days.

In this new logic, we ensure that for every new day a new log file is provisioned. This provisioning ensures the information for a given day is present in log files where the filename matches the log entry dates.Also the file partition within the day is performed if the maximum individual file size (default of 100 MB) is reached.

 <system.diagnostics> <trace autoflush="true" indentsize="4"> <listeners> <remove name="Default" /> <add name="ApplicationFileTraceListener" type="Microsoft.PowerBI.DataMovement.Pipeline.Common.Diagnostics.AgeBasedRetentionRotatableFilesManagerTraceListener, Microsoft.PowerBI.DataMovement.Pipeline.Common" initializeData="%LOCALAPPDATA%\Microsoft\On-premises data gateway\,30,5120,100" /> </listeners> </trace> </system.diagnostics>

If you would like to change the retention default parameters values, you should adjust them in the initializeData value. The following list describes each parameter:

  • Retention period in days (a value between 1 and 365 days).
  • Maximum total size in MB which can be consumed by the three log file types.
  • Maximum size in MB which each log file can have individually. Each time the limit is reached, a new file is created with an sequential number appended.

Note

Gateway logs use UTC based timestamps, and the daily log file rotation will take place at 00:00 UTC.

File count based retention

This was the default log retention logic within a gateway for versions December 2022 and earlier. This logic has two main concepts:

  • Number of files to be retained per log type (GatewayInfo*.log, GatewayError*.log, GatewayNetwork*.log).
  • Maximum disk space to be consumed per log type (GatewayInfo*.log, GatewayError*.log, GatewayNetwork*.log).

The files are partitioned accordingly with the previously listed criteria, and therefore, whenever you reach the maximum number of files it will typically also be at or close to maximum disk space.

The following excerpt from the gateway configuration file Microsoft.PowerBI.EnterpriseGateway.exe.config contains the three categories: GatewayInfo.log, GatewayErrors.log, and GatewayNetwork.log.

 <system.diagnostics> <trace autoflush="true" indentsize="4"> <listeners> <remove name="Default" /> <add name="ApplicationFileTraceListener" type="Microsoft.PowerBI.DataMovement.Pipeline.Common.Diagnostics.RotatableFilesManagerTraceListener, Microsoft.PowerBI.DataMovement.Pipeline.Common" initializeData="%LOCALAPPDATA%\Microsoft\On-premises data gateway\,GatewayInfo.log,GatewayErrors.log,GatewayNetwork.log,20,50" /> </listeners> </trace> </system.diagnostics>

By default, the gateway configuration file is located in the directory \Program Files\On-premises data gateway. To set the number of log files to retain, change the first number in the file's initializeData value. To configure the size of each log file, change the second number.

The following example specifies that 20 log files, the sum total of all files in each category being no more than 50 MB in size, will be retained:GatewayInfo.log,GatewayErrors.log,GatewayNetwork.log,20,50

Will the new age based retention logic apply by default to my existing on-premises data gateway installation?

No. This retention logic for now is applied to completely new gateway installations. Existing gateways while upgrading to February 2023 or later versions should keep their current log retention logic (file count based retention).

Next steps

For information on how to export gateway logs for troubleshooting, go to Troubleshooting tools.

Configure log files for the on-premises data gateway (2024)
Top Articles
Latest World & National News & Headlines
How Long Does It Take to Improve My Credit Score After Debt Settlement?
Tesla Supercharger La Crosse Photos
Chris wragge hi-res stock photography and images - Alamy
Watch Mashle 2nd Season Anime Free on Gogoanime
Dee Dee Blanchard Crime Scene Photos
How to Type German letters ä, ö, ü and the ß on your Keyboard
Barstool Sports Gif
Apnetv.con
Autozone Locations Near Me
Locate Td Bank Near Me
Horned Stone Skull Cozy Grove
What’s the Difference Between Cash Flow and Profit?
Oppenheimer Showtimes Near Cinemark Denton
Everything You Need to Know About Holly by Stephen King
Cooktopcove Com
Betonnen afdekplaten (schoorsteenplaten) ter voorkoming van lekkage schoorsteen. - HeBlad
O'reilly's Auto Parts Closest To My Location
Hood County Buy Sell And Trade
Uc Santa Cruz Events
fort smith farm & garden - craigslist
N2O4 Lewis Structure & Characteristics (13 Complete Facts)
Grayling Purnell Net Worth
Google Doodle Baseball 76
Eine Band wie ein Baum
Cvs El Salido
WRMJ.COM
Pacman Video Guatemala
Duke University Transcript Request
24 Hour Drive Thru Car Wash Near Me
Ravens 24X7 Forum
Kaiserhrconnect
آدرس جدید بند موویز
#1 | Rottweiler Puppies For Sale In New York | Uptown
Chs.mywork
Planet Fitness Lebanon Nh
Dmitri Wartranslated
The disadvantages of patient portals
Elisabeth Shue breaks silence about her top-secret 'Cobra Kai' appearance
Spectrum Outage in Genoa City, Wisconsin
Tillman Funeral Home Tallahassee
Lake Kingdom Moon 31
Ladyva Is She Married
Lyndie Irons And Pat Tenore
Stranahan Theater Dress Code
Hello – Cornerstone Chapel
Rocket League Tracker: A useful tool for every player
City Of Irving Tx Jail In-Custody List
Union Supply Direct Wisconsin
Spongebob Meme Pic
Taterz Salad
Latest Posts
Article information

Author: Frankie Dare

Last Updated:

Views: 6214

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Frankie Dare

Birthday: 2000-01-27

Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

Phone: +3769542039359

Job: Sales Manager

Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.