Is it ok to delete the IIS log files in C:\WINDOWS\system32\LogFiles\W3SVC1?

Posted on 2008-10-04
Last Modified: 2012-05-05
Is it ok to delete IIS log files on  C:\WINDOWS\system32\LogFiles\W3SVC1?  I am using IIS 6.0 on a Windows 2003 server.
Question by:digraj
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Expert Comment

ID: 22641008
Yes, it is OK.  I would recommend saving the log files in a zip folder for archiving but here is the link to Microsoft on how to do so:
LVL 12

Accepted Solution

Pugglewuggle earned 500 total points
ID: 22641816
Yes. It's perfectly fine to delete them. IIS will just create a new file. Unless you want to save the logs for future use, there's no reason to save them as mentioned above.
You can also delete the log files in every other folder that starts with W3SVC without any negative effects. IIS will create a folder for every site you create of have created in the past. Make sure you don't delete the folder though, just the files inside.
I'm sure your deleting these to recover disk space (logs can get BIG depending on settings!).

Author Comment

ID: 22641964
Pugglewuggle - do you konw if there is a setting in IIS that enables you to configure how many days to keep logs for?
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.


Expert Comment

ID: 22642130
If you right-click on any of the websites and click properties it will take you to the Web sites tab.  On that tab, in the lower part it will have a button that says Properties.  Click that!  It should have everything you need there.
LVL 12

Expert Comment

ID: 22642195
Unfortunately there is not in IIS 6.0. :(
Just clear them out every once in a while if you need to. :)
LVL 12

Expert Comment

ID: 22642198
Yes, it does give you every way to configure logging - except for the time period to retain them. They must be deleted manually.

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
In an interesting question ( here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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