Solved

Log file filling up C drive

Posted on 2012-03-28
4
321 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

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

Update 11/3/2014 - Although the below article will get you to relocate the WINSXS folder, Microsoft has finally released a utility to reduce the size of the WINSXS folder. For some reason, it's not that straightforward. It only works on Windows 2008…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now