Where are my IIS log files stored?

The steps for determining where your IIS logs are stored varies depending on the IIS version used. 

 

Applies to IIS 7 and Above

Please perform the following steps on your server to determine your log location:
 
  1. From the Windows Start menu, hover over Administrative Tools and click on Internet Information Services (IIS) Manager.
  2. In the lefthand tree view, expand the server name’s folder and click on the Sites folder to load a list of sites in the content pane. Make note of the desired site’s ID.
  3. Double click on the site to open its settings in the content pane. (Alternatively, you can expand the Sites folder and click on the site name in the lefthand tree view.)
  4. Select Logging from the content pane to load the Logging settings. In the Directory field, you’ll find the path in which your logs reside.
  5. Navigate to the LogFiles folder by following the path contained in the Directory field.
  6. Within the LogFiles folder you’ll find a subfolder for each site configured in SmarterStats, labeled as W3SVC1, W3SVC2, etc. The last number in the folder name corresponds to the SiteID. For example, W3SVC1 would contain the logs for the site with ID 1 in IIS. Find the folder that matches your site’s ID and you’ve found its location path.
 

Applies to IIS 6 and Below

Please perform the following steps on your server to determine your log location:
 
  1. From the Windows Start menu, hover over Administrative Tools and click on Internet Information Services (IIS) Manager.
  2. In the lefthand tree view, expand your server name's folder and then the Sites folder.
  3. Right-click on the desired site name and choose Properties. The settings will load in the content pane.
  4. On the Website tab, you'll see an option near the bottom that says "Active Log Format." Click on the Properties button.
  5. At the bottom of the General Properties tab, you'll see a box that contains the log file directory and the log file name. The full log path is comprised of the log file directory plus the first part of the log file name. For example, if the dialog box displayed the values below, then your full log path to put into SmarterStats would be: C:\Windows\System32\LogFiles\W3SVC1.
Log file directory: C:\Windows\System32\LogFiles
Log file name: W3SVC1\exyymmdd.log

 

To learn more about SmarterStats and how it uses Web logs to provide detailed analysis of web site traffic, spider and bot detection, SEO analysis and more, visit the SmarterTools website. Get started with a download of the free edition -- good for a single site!