Typical location & description of various log files

IIS Logs Location

On a standard Windows Server, IIS log files are found at %SystemDrive%\inetpub\logs\LogFiles by default.

How to Find IIS Log Files on IIS 7 and Later

  1. Go to Windows Start and run “inetmgr”. Alternatively, you can go to Administrative Tools → Internet Information Services (IIS) Manager.

  2. Click on “Sites” in the left-hand tree menu to display a list of sites on the right of the screen. Note your site ID number, which is what IIS saves logs based on.

  3. Within the tree view or the grid view, double click on your site. Next, double-click the Logging icon for the logging settings screen to open.

  4. Find your IIS log files in the Directory field of the logging settings screen.

  5. Go to the IIS log files location in the directory field. Inside this folder, there are sub folders for each site configured with IIS. The naming pattern for the folders the logs are in is W3SVC1, W3SVC2, etc. The number at the end of the folder name corresponds to the site ID mentioned in step No. 2. Thus, W3SVC2 corresponds to site ID 2.

How to Find IIS Log Files on Azure

Azure Cloud:

  1. IIS log files are automatically saved in Azure Cloud Services.

  2. Access log files by using the Remote Desktop to connect to a specific server. There, files are stored in a path similar to this one: C:\Resources\directory\{some random guid}.{app name}.DiagnosticStore\LogFiles\Web\W3SVC{random number}

Azure App Services:

  1. Ensure that web server logging is enabled.

  2. Set web server logging to save to the file system.

  3. The files are located under: D:\home\LogFiles\http\RawLogs via the KUDU console.

Last updated