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
How to Increase Your Credit Card Limit?
How to open Samsung Pay
How To Use Scarabs Poe
Google Doodle Baseball Classroom
One Fine Chocolate Place
Ap Spanish Score Calculator
Doomzday Build 2023
Frivlegends.com Unblocked
The Financial Benefits of Earning a College Degree
Oooze (3rd Coast Genetics) :: Cannabis Strain Info
Www Craigslist Springfield Missouri
Gamaflex Bot
Missed Connections Inland Empire
Walmart Light Fixtures
Froedtert Billing Phone Number
Atlanta Braves Logo - Logo, zeichen, emblem, symbol. Geschichte und Bedeutung
Mr Biggs Soul Sonic Force Net Worth
Lesson 12 Homework 4.5 Answer Key
Der M.2-Slot: Was ist er, und wie kann ich ihn nutzen?
Braulio Babo Castellanos
Oreilleys Auto Near Me
Ups Drop Off Newton Ks
Bert Kish Longmire
Richard Sambade Obituary
Wjga District 2
Streameast Mlb Playoffs
Batana Oil: Can It Help with Hair Loss?
Freightliner Cascadia d'occasion à vendre | tracteur routier
Universal and Individual Gas Constants
123Movies I Am Legend
Csl Plasma Wilkes-Barre Township Reviews
Doublelist Lima
Monroeville Craigslist
Student Registration / Overview
Sigalert Com Inland Empire
Kfc Menu Open Now
Uhsbhlearn.com
Why Is 365 Market Troy Mi On My Bank Statement
Craigslist Gigs Galveston
Ella Phipps Haughton
TamilMV Proxy List (Jan 2024) 1TamilMV Mirrors To Unblock
Crexi Vs LoopNet: Which Commercial Real Estate Platform Is For You?
Unknown Venmo Charges on Bank Statement
Colorado Pick 3 Lottery
Filmy4Wab Xyz
Cargurus Ram Trx
Full Cast Of Red
Palo Pinto Rant And Rave
6700 Richfield Parkway
Dalmatian Puppies For Sale Craigslist
Carlson Career Center
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.