Solved

Log file filling up C drive

Posted on 2012-03-28
4
326 Views
Last Modified: 2012-03-28
Hi
I have just noticed that the C drive on my exchange 2003 server has only 1.8gb of space left! I can see that the following location is using up 36GB

C:\WINDOWS/system32/LogFiles/W3SVC1

I'm assuming these are something to do with exchange but not sure what, can I remove older log files from here?? Is there somewhere in ESM that I can map these log files to another drive where the Exchange DB and Exchange logs are stored?

Urgent help required if possible!
0
Comment
Question by:smiffy07
  • 2
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
rtay earned 500 total points
ID: 37777209
you can delete these files.  they are for troubleshooting and security.  You can also turn of logging if they do not interest you or write a script to automatically delete them.  The script would look like something below.  



at 12:00 /EVERY:Su Forfiles.exe -p C:\WINDOWS\system32\LogFiles\W3SVC1 -m *.log -d -30 -c \"Cmd.exe /C del @path\"
0
 

Author Comment

by:smiffy07
ID: 37777230
Thanks, so I just turn off logging on the properties folder for default websites in IIS??

Then once this is disabled I can delete the log files?
0
 
LVL 5

Expert Comment

by:rtay
ID: 37777240
you do not have to turn off logging.  in fact I would not incase I need to see what is going on.  I would just periodically delete the files, or like the script, deletes everything older than 30 days.
0
 

Author Comment

by:smiffy07
ID: 37777280
Cool ok, I will do that.
0

Featured Post

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

680 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