Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


rename IIS log file directory name

Posted on 2010-01-08
Medium Priority
Last Modified: 2012-05-08
IIS 6 on Windows 2003

My web servers are logging to directories with names like W3SVC125896208.  IIS properities has Log file directory of "D:\Logfiles".  The system is creating the W3SVC125896208.  Can that be changed to web1logs?  Therefore, D:\Logfiles\web1logs instead of D:\Logfiles\W3SVC125896208.

Question by:magnusthorne
  • 3
  • 2
LVL 31

Accepted Solution

James Murrell earned 500 total points
ID: 26214872
two things
The log files are then separated by the site Instance ID. For example the default web site is always stored as W3SVC1, any new web sites you create will have a different number appended to the W3SVC foldername
moving location is easy....Go to Start -> Control Panel -> Administrative Tools Run Internet Information Services (IIS). Find your Web site under the tree on the left. Right-click on it and choose Properties. On the Web site tab, you will see an option near the bottom that says "Active Log Format." Click on the Properties button. At the bottom of the General Properties tab, you will 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.

Expert Comment

ID: 26215180
No you can't, not from IIS, but once the log file is created you could rename it.
LVL 17

Expert Comment

ID: 26273520
You are mistaken. You can change this path.

By default IIS will assign a random number for the SiteID for a new site. This is stored in the metabase.

Have a look at this post from ex-IIS team David Wang.


That explains how to change the site ID for any site.
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

LVL 17

Expert Comment

ID: 26273530
Forgot to say you cannot have it exactly as you want in the as in the site id as: web1logs

It needs to be  in the same format like W3SVC<numbert> so yo ucna have W3SVC1 or W3SVC2 ,etc ,etc
LVL 31

Expert Comment

by:James Murrell
ID: 26273714
Well done all for saying what i said
LVL 17

Expert Comment

ID: 26310949
I don't understand cs97jjm3

I Answered the question differently to you.

Your solution would have kept the siteID as often somthing unsightly 1232415627, etc

I said you can change the siteID which is a different solution therefore it is not saying what you said.

You should read the link.

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question