Windows
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
Go to Windows Start and run “inetmgr”. Alternatively, you can go to Administrative Tools → Internet Information Services (IIS) Manager.
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.
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.
Find your IIS log files in the Directory field of the logging settings screen.
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:
IIS log files are automatically saved in Azure Cloud Services.
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}
Ensure that web server logging is enabled.
Set web server logging to save to the file system.
The files are located under: D:\home\LogFiles\http\RawLogs via the KUDU console.
Last updated