Can logs in C:\inetpub\logs\LogFiles\W3SVC1 be deleted


Im currently clearing space on the C Drive of our SBS2011 box and noticed there is a log file which is about 4gb in size in the above folder, can I delete this?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SycamoreITAuthor Commented:
Just to confirm, its just one log file which is very large. When I tried to rename it, I got an error stating it was in use by the system so I guess I need to stop a server before I can rename/delete or move the file?
IvanSystem EngineerCommented:

those logs are from exchange and are mainly for troubleshooting or viewing security stuff.
I usually delete them, if I get into problem with space, since they take some 30Gb on my server, in time period of 2 months.

I would change logging direction for IIS, then restart IIS, for changes to take affect, and then you could delete those files (or backup and open that log  to see what is going on).

PS: If you have WSUS then maybe there are information regarding that.

Take a look at this article:

Dan McFaddenSystems EngineerCommented:
Yes, you can delete the log files that are in that directory.  There will be no net effect on your server.

What you can do is reconfigure the logging feature in IIS to rotate the logs out on a regular basis so that you don't wind up with excessively large log files.  You can also reconfig the logging feature to save the log file somewhere else other than the boot partition (c: drive), this helps avoid the situation where the log files clog up the c: drive and causes operational issues with the OS.

If you reconfigure IIS' logging feature you do not need to restart IIS.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

SycamoreITAuthor Commented:
Thanks for the assistance chaps.
Dan McFaddenSystems EngineerCommented:
Has the issue been resolved?

SycamoreITAuthor Commented:
SycamoreITAuthor Commented:
I thought so but the exchange server has just stopped accepting incoming messages (outbound still working) Suspect a space issue since C drive has 4.41gb of 171gb - just searching for stuff to delete.
Dan McFaddenSystems EngineerCommented:
Check your Safety Net settings in Exchange.

SycamoreITAuthor Commented:
Safety Net settings, not come avrosd that previously?
Dan McFaddenSystems EngineerCommented:
I would check to see if the size what the size of the mail.que file is.  This is short term message storage in Exchange, it can help in quickly restoring message if needed.

Reference Link:

Additional info:

If you've used Ex2010, this is the new name for the functionality formally known as Transport Dumpster (I like the old name better, anytime I can say "dumpster" in a technical discussion and be serious about it, I enjoy my job even more)

The size of mial.que is dependent on 2 things, your retention settings and the message volume on your Exchange server(s).

SycamoreITAuthor Commented:
I managed to move a couple of PSTs from the C drive and got back 24gb so thanks for pointing me in the direction of lack of space.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.