Soru

Zorluk: OrtaDiagnose and Log App Service Web Apps

A developer is troubleshooting server-side HTTP 500 errors on a Windows-based Azure App Service. The developer runs the following Azure CLI command:

az webapp log config --name my-app --resource-group my-rg --failed-request-tracing true

The developer now needs to download and inspect the raw XML log files generated by this feature using the Kudu console. Under which directory in the App Service file system are the Failed Request Tracing logs stored?

  1. A
    D:\home\LogFiles\DetailedErrors
  2. B
    /home/LogFiles/W3SVC<SiteID>
  3. D:\home\LogFiles\W3SVC<SiteID>Cevap
  4. D
    D:\home\LogFiles\Application

Cevap

The Failed Request Tracing logs are stored in the directory D:\home\LogFiles\W3SVC<SiteID>.
On a Windows-based Azure App Service, IIS Failed Request Tracing generates detailed XML logs of the IIS request pipeline. These logs are stored in the directory structured as D:\home\LogFiles\W3SVC<SiteID>, where <SiteID> is the platform-assigned IIS site identifier. Developers can browse, download, and analyze these XML files using the Kudu console or FTP to determine why specific requests failed.

Adım Adım Çözüm

1
Identify the operating system and the specific logging feature being enabled.
The target is a Windows-based Azure App Service, and the feature is Failed Request Tracing.
Failed Request Tracing is an IIS-specific feature available on Windows-based App Services that outputs XML traces of request pipelines.
2
Determine the root filesystem structure of a Windows-based App Service.
The root path is D:\home, and all diagnostic logs are saved under D:\home\LogFiles.
Understanding the path structure allows you to distinguish between Windows-based (D:\home) and Linux-based (/home) filesystem structures.
3
Identify the correct subfolder for Failed Request Tracing files.
Failed Request Tracing files are saved under the W3SVC<SiteID> folder.
This subfolder is specifically designated for IIS Failed Request Tracing logs, whereas other folders like DetailedErrors store HTML errors and Application stores application traces.

Anahtar Kavram

Identifying the correct log storage directories for different App Service logging features on Windows versus Linux.
Bu soruyu puanla